kopia lustrzana https://github.com/wagtail/wagtail
reworded publish button, also made warning a property of a dropdown
rodzic
fb934cbd85
commit
53ab3c169c
|
@ -31,11 +31,11 @@
|
|||
<footer>
|
||||
<ul>
|
||||
<li class="actions">
|
||||
<div class="dropdown dropup dropdown-button match-width">
|
||||
<div class="dropdown dropup dropdown-button match-width {% if is_revision %}warning{% endif %}">
|
||||
<button type="submit" class="action-save button-longrunning {% if is_revision %}warning{% endif %}" tabindex="3" data-clicked-text="{% trans 'Saving...' %}" {% if page.locked %}disabled {% endif %}><span class="icon icon-spinner"></span><em>{% if page.locked %}{% trans 'Page locked' %}{% else %}{% if is_revision %}{% trans 'Replace current draft' %}{% else %}{% trans 'Save draft' %}{% endif %}{% endif %}</em></button>
|
||||
|
||||
{% if not page.locked %}
|
||||
<div class="dropdown-toggle {% if is_revision %}warning{% endif %} icon icon-arrow-up"></div>
|
||||
<div class="dropdown-toggle icon icon-arrow-up"></div>
|
||||
<ul role="menu">
|
||||
{% if not is_revision and page_perms.can_unpublish %}
|
||||
<li><a href="{% url 'wagtailadmin_pages:unpublish' page.id %}">{% trans 'Unpublish' %}</a></li>
|
||||
|
@ -45,7 +45,7 @@
|
|||
{% endif %}
|
||||
{% if page_perms.can_publish %}
|
||||
<li>
|
||||
<button type="submit" name="action-publish" value="action-publish" class="button-longrunning {% if is_revision %}warning{% endif %}" tabindex="3" data-clicked-text="{% trans 'Publishing...' %}" {% if page.locked %}disabled {% endif %}><span class="icon icon-spinner"></span><em>{% if is_revision %}{% trans 'Publish revision' %}{% else %}{% trans 'Publish' %}{% endif %}</em></button>
|
||||
<button type="submit" name="action-publish" value="action-publish" class="button-longrunning {% if is_revision %}warning{% endif %}" tabindex="3" data-clicked-text="{% trans 'Publishing...' %}" {% if page.locked %}disabled {% endif %}><span class="icon icon-spinner"></span><em>{% if is_revision %}{% trans 'Publish this revision' %}{% else %}{% trans 'Publish' %}{% endif %}</em></button>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if not is_revision %}
|
||||
|
|
Ładowanie…
Reference in New Issue