mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
Fix workflow action menu, styling after action menu
This commit is contained in:
parent
640d207619
commit
52a79bd30c
@ -45,12 +45,20 @@
|
||||
</div>
|
||||
</li>
|
||||
|
||||
{% if page.workflow_in_progress %}
|
||||
{% if page.workflow_in_progress and workflow_actions %}
|
||||
<li class="actions">
|
||||
<div class="dropdown dropup dropdown-button match-width {% if is_revision %}warning{% endif %}">
|
||||
{% for action_name, action_label in workflow_actions %}
|
||||
{% with action_name=workflow_actions.0.0 action_label=workflow_actions.0.1 %}
|
||||
<button class="button action-save button-longrunning" data-workflow-action="{{ action_name }}"><span class="icon icon-spinner"></span><em>{{ action_label }}</em></button>
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
<div class="dropdown-toggle icon icon-arrow-up"></div>
|
||||
<ul>
|
||||
{% for action_name, action_label in workflow_actions %}
|
||||
{% if not forloop.first %}
|
||||
<li><button class="button" data-workflow-action="{{ action_name }}">{{ action_label }}</button></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user