Add some missing class="button" styles.

Also added type="button" to the up/down/delete controls in wagtailsearchpromotions, so that they don't get treated as submit buttons.
pull/2616/merge
Matt Westcott 2016-05-16 17:31:31 +01:00
rodzic b8c1a0895e
commit be1b2d3cad
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -1,9 +1,9 @@
{% load i18n %}
<li id="inline_child_{{ form.prefix }}"{% if form.DELETE.value %} style="display: none;"{% endif %}>
<ul class="controls">
<li><button class="icon text-replace icon-order-up inline-child-move-up" id="{{ form.prefix }}-move-up">{% trans "Move up" %}</button></li>
<li><button class="icon text-replace icon-order-down inline-child-move-down" id="{{ form.prefix }}-move-down">{% trans "Move down" %}</button></li>
<li><button class="icon text-replace icon-bin" id="{{ form.DELETE.id_for_label }}-button">{% trans "Delete" %}</button></li>
<li><button type="button" class="button icon text-replace icon-order-up inline-child-move-up" id="{{ form.prefix }}-move-up">{% trans "Move up" %}</button></li>
<li><button type="button" class="button icon text-replace icon-order-down inline-child-move-down" id="{{ form.prefix }}-move-down">{% trans "Move down" %}</button></li>
<li><button type="button" class="button icon text-replace icon-bin" id="{{ form.DELETE.id_for_label }}-button">{% trans "Delete" %}</button></li>
</ul>
<fieldset>

Wyświetl plik

@ -12,7 +12,7 @@
<form action="{% url 'wagtailadmin_pages:unlock' page.id %}" method="POST" class="status-tag primary">
{% csrf_token %}
<input type="hidden" name="next" value="{% url 'wagtailadmin_pages:edit' page.id %}">
<input type="submit" class="unbutton" value="{% trans "Locked" %}">
<input type="submit" class="button unbutton" value="{% trans "Locked" %}">
</form>
{% else %}
<span class="status-tag primary">Locked</span>