Switches position of list delete and save buttons

This commit is contained in:
Mouse Reeve 2021-12-30 12:38:36 -08:00
parent 821e579a39
commit ec0b1e8cc3

View file

@ -114,21 +114,19 @@
</fieldset> </fieldset>
</div> </div>
</div> </div>
<div class="columns is-mobile"> <div class="is-flex">
<div class="column">
<div class="field has-addons">
<div class="control">
{% include 'snippets/privacy_select.html' with current=list.privacy %}
</div>
<div class="control">
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
</div>
</div>
</div>
{% if list.id %} {% if list.id %}
<div class="column is-narrow"> <div class="is-flex-grow-1">
{% trans "Delete list" as button_text %} {% trans "Delete list" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with class="is-danger" text=button_text icon_with_text="x" controls_text="delete_list" controls_uid=list.id focus="modal_title_delete_list" %} {% include 'snippets/toggle/toggle_button.html' with class="is-danger" text=button_text icon_with_text="x" controls_text="delete_list" controls_uid=list.id focus="modal_title_delete_list" %}
</div> </div>
{% endif %} {% endif %}
<div class="field has-addons">
<div class="control">
{% include 'snippets/privacy_select.html' with current=list.privacy %}
</div>
<div class="control">
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
</div>
</div>
</div> </div>