Use close button instead of cancel button on edit form
This commit is contained in:
parent
697bcb0edb
commit
944503dde5
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
<label class="field">
|
<label class="field">
|
||||||
<input type="radio" name="curation" value="open"{% if list.curation == 'open' %} checked{% endif %}> Open
|
<input type="radio" name="curation" value="open"{% if list.curation == 'open' %} checked{% endif %}> Open
|
||||||
<p class="help mb-2">Anyone can add books to this list, but only you can remove them</p>
|
<p class="help mb-2">Anyone can add books to this list</p>
|
||||||
</label>
|
</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
@ -39,7 +39,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button type="submit" class="button is-primary">Save</button>
|
<button type="submit" class="button is-primary">Save</button>
|
||||||
{% include 'snippets/toggle/close_button.html' with controls_text='create-list' text="Cancel" %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -10,13 +10,18 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if request.user == list.user %}
|
{% if request.user == list.user %}
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow">
|
||||||
{% include 'snippets/toggle/open_button.html' with text="Edit list" icon="pencil" controls_text="create-list" %}
|
{% include 'snippets/toggle/open_button.html' with text="Edit list" icon="pencil" controls_text="edit-list" %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<form name="create-list" method="post" action="{% url 'list' list.id %}" class="box hidden" id="create-list">
|
<form name="edit-list" method="post" action="{% url 'list' list.id %}" class="box hidden" id="edit-list">
|
||||||
<h3 class="title">Edit list</h3>
|
<header class="columns">
|
||||||
|
<h3 class="title column">Edit list</h3>
|
||||||
|
<div class="column is-narrow">
|
||||||
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="edit-list" label="close" class="delete" nonbutton=True %}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
{% include 'lists/form.html' %}
|
{% include 'lists/form.html' %}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -17,7 +17,12 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<form name="create-list" method="post" action="{% url 'lists' %}" class="box hidden" id="create-list">
|
<form name="create-list" method="post" action="{% url 'lists' %}" class="box hidden" id="create-list">
|
||||||
<h3 class="title">Create list</h3>
|
<header class="columns">
|
||||||
|
<h3 class="title column">Create list</h3>
|
||||||
|
<div class="column is-narrow">
|
||||||
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="create-list" label="close" class="delete" nonbutton=True %}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
{% include 'lists/form.html' %}
|
{% include 'lists/form.html' %}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user