move around changeset buttons
{% 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 }}">
{% endfor %}
{% buttons %}
+ {% 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 %}
+ {% 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 %}
- {% if can_unpropose %}
- <button type="submit" class="btn btn-default" name="unpropose" value="1">{% trans 'Unpropose' %}</button>
+ {% endif %}
+ {% if not active and not changeset.closed %}
+ <button type="submit" class="btn btn-info" name="activate" value="1">{% trans 'Activate' %}</button>
{% endif %}
</div>
{% endbuttons %}
