kopia lustrzana https://github.com/wagtail/wagtail
Use <button> instead of <input> for submit buttons in generic create/edit views' templates
rodzic
678dd15852
commit
0af4dd5fd9
|
@ -2,7 +2,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block actions %}
|
{% block actions %}
|
||||||
<input type="submit" value="{% trans 'Save' %}" class="button" />
|
{{ block.super }}
|
||||||
{% if delete_url %}
|
{% if delete_url %}
|
||||||
<a href="{{ delete_url }}" class="button no">{{ delete_item_label }}</a>
|
<a href="{{ delete_url }}" class="button no">{{ delete_item_label }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -24,13 +24,11 @@
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<li>
|
|
||||||
{% block actions %}
|
|
||||||
<input type="submit" value="{{ submit_button_label }}" class="button" />
|
|
||||||
{% endblock %}
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{% block actions %}
|
||||||
|
<button type="submit" class="button">{{ submit_button_label }}</button>
|
||||||
|
{% endblock %}
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue