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

pull/10830/head
Sage Abdullah 2023-11-07 10:30:41 +00:00
rodzic 678dd15852
commit 0af4dd5fd9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
2 zmienionych plików z 5 dodań i 7 usunięć

Wyświetl plik

@ -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 %}

Wyświetl plik

@ -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 %}