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:
parent
678dd15852
commit
0af4dd5fd9
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user