move around changeset buttons

This commit is contained in:
Laura Klünder 2017-07-05 17:31:08 +02:00
parent 64a6bdf69c
commit d918868b6f

View file

@ -27,14 +27,6 @@
{% blocktrans %}last update at {{ datetime }}{% endblocktrans %}
{% endwith %}
</p>
<p>
{% if not active and not changeset.closed %}
<button type="submit" class="btn btn-xs btn-default" name="activate" value="1">{% trans 'Activate' %}</button>
{% endif %}
{% if can_edit %}
<a href="{% url 'editor.changesets.edit' pk=changeset.pk %}" class="btn btn-xs btn-default">{% trans 'Edit' %}</a>
{% endif %}
</p>
{% bootstrap_messages %}
{% if changeset.last_state_update and changeset.state != 'unproposed' %}
<div class="panel panel-{{ changeset.style }}">
@ -115,15 +107,25 @@
{% endfor %}
{% buttons %}
{% if can_delete %}
<button type="submit" class="btn btn-danger" name="delete" value="1">{% trans 'Delete' %}</button>
{% if active %}
{% if can_delete %}
<button type="submit" class="btn btn-danger" name="delete" value="1">{% trans 'Delete' %}</button>
{% endif %}
{% endif %}
{% if can_unpropose %}
<button type="submit" class="btn btn-warning" name="unpropose" value="1">{% trans 'Unpropose' %}</button>
{% endif %}
<div class="pull-right">
{% if can_edit and not changeset.proposed %}
<button type="submit" class="btn btn-primary" name="propose" value="1">{% trans 'Propose' %}</button>
{% if active %}
{% if can_edit %}
<a href="{% url 'editor.changesets.edit' pk=changeset.pk %}" class="btn btn-default">{% trans 'Edit' %}</a>
{% endif %}
{% if can_edit and not changeset.proposed and active %}
<button type="submit" class="btn btn-primary" name="propose" value="1">{% trans 'Propose' %}</button>
{% endif %}
{% endif %}
{% if can_unpropose %}
<button type="submit" class="btn btn-default" name="unpropose" value="1">{% trans 'Unpropose' %}</button>
{% if not active and not changeset.closed %}
<button type="submit" class="btn btn-info" name="activate" value="1">{% trans 'Activate' %}</button>
{% endif %}
</div>
{% endbuttons %}