move around changeset buttons
This commit is contained in:
parent
64a6bdf69c
commit
d918868b6f
1 changed files with 16 additions and 14 deletions
|
@ -27,14 +27,6 @@
|
||||||
{% blocktrans %}last update at {{ datetime }}{% endblocktrans %}
|
{% blocktrans %}last update at {{ datetime }}{% endblocktrans %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</p>
|
</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 %}
|
{% bootstrap_messages %}
|
||||||
{% if changeset.last_state_update and changeset.state != 'unproposed' %}
|
{% if changeset.last_state_update and changeset.state != 'unproposed' %}
|
||||||
<div class="panel panel-{{ changeset.style }}">
|
<div class="panel panel-{{ changeset.style }}">
|
||||||
|
@ -115,15 +107,25 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% buttons %}
|
{% buttons %}
|
||||||
{% if can_delete %}
|
{% if active %}
|
||||||
<button type="submit" class="btn btn-danger" name="delete" value="1">{% trans 'Delete' %}</button>
|
{% 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 %}
|
{% endif %}
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
{% if can_edit and not changeset.proposed %}
|
{% if active %}
|
||||||
<button type="submit" class="btn btn-primary" name="propose" value="1">{% trans 'Propose' %}</button>
|
{% 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 %}
|
{% endif %}
|
||||||
{% if can_unpropose %}
|
{% if not active and not changeset.closed %}
|
||||||
<button type="submit" class="btn btn-default" name="unpropose" value="1">{% trans 'Unpropose' %}</button>
|
<button type="submit" class="btn btn-info" name="activate" value="1">{% trans 'Activate' %}</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endbuttons %}
|
{% endbuttons %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue