0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Use <button> instead of <input> for submit buttons in generic create/edit views' templates

This commit is contained in:
Sage Abdullah 2023-11-07 10:30:41 +00:00
parent 678dd15852
commit 0af4dd5fd9
No known key found for this signature in database
GPG Key ID: EB1A33CC51CC0217
2 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block actions %}
<input type="submit" value="{% trans 'Save' %}" class="button" />
{{ block.super }}
{% if delete_url %}
<a href="{{ delete_url }}" class="button no">{{ delete_item_label }}</a>
{% endif %}

View File

@ -24,13 +24,11 @@
</li>
{% endfor %}
{% endblock %}
<li>
{% block actions %}
<input type="submit" value="{{ submit_button_label }}" class="button" />
{% endblock %}
</li>
</ul>
{% block actions %}
<button type="submit" class="button">{{ submit_button_label }}</button>
{% endblock %}
</form>
{% endblock %}