Skip to content

Commit

Permalink
Fix incorrectly labelled “Save” button for importing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed May 30, 2021
1 parent ebb8020 commit 9d8bf87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/templates/import/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
{% set groupOptions = groupOptions | merge([{ label: group.name, value: group.id }]) %}
{% endfor %}

{% block submitButton %}
<button type="submit" class="btn submit">{{ 'Import' | t('field-manager') }}</button>
{% endblock %}

{% block blockContent %}

<p>{{ 'Choose how you want to import your fields. You can modify the Name and Handle for each field, along with assigning it to a Field Group.' | t('field-manager') }}</p>

<input type="hidden" name="action" value="">
<input type="hidden" name="action" value="field-manager/base/import">
<input type="hidden" name="data" value="{{ craft.app.request.param('data') }}">

{% set groups = craft.app.fields.allGroups %}
Expand Down Expand Up @@ -119,7 +123,6 @@

<div class="buttons">
<a href="javascript: window.history.go(-1)" class="btn submit">{{ 'Back' | t('field-manager') }}</a>
<input type="submit" data-action="field-manager/base/import" class="btn submit" value="{{ 'Import' | t('field-manager') }}">
<div id="newgroupbtn" class="btn add icon submit right">{{ "New Field Group" | t('field-manager') }}</div>
</div>

Expand Down

0 comments on commit 9d8bf87

Please sign in to comment.