Using toggle button snippets on shelf page
This commit is contained in:
parent
e2d341b147
commit
aa7320ffe0
|
@ -33,20 +33,15 @@
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow">
|
||||||
<input type="radio" id="create-shelf-form-hide" name="create-shelf-form" class="toggle-control" checked>
|
<input type="radio" id="create-shelf-form-hide" name="create-shelf-form" class="toggle-control" checked>
|
||||||
<div class="toggle-content hidden">
|
<div class="toggle-content hidden">
|
||||||
<label for="create-shelf-form-show">
|
{% include 'snippets/toggle/toggle_button.html' with text="Create shelf" icon="plus" class="is-clickable" controls_text="create-shelf-form-show" %}
|
||||||
<div role="button" tabindex="0">
|
|
||||||
<span class="icon icon-plus">
|
|
||||||
<span class="is-sr-only">Create new shelf</span>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="radio" id="create-shelf-form-show" name="create-shelf-form" class="toggle-control">
|
<div>
|
||||||
<div class="toggle-content hidden">
|
<input type="radio" id="create-shelf-form-show" name="create-shelf-form" class="toggle-control">
|
||||||
|
<div class="toggle-content hidden">
|
||||||
<div class="box mb-5">
|
<div class="box mb-5">
|
||||||
<h2 class="title is-4">Create new shelf</h2>
|
<h2 class="title is-4">Create new shelf</h2>
|
||||||
<form name="create-shelf" action="/create-shelf/" method="post">
|
<form name="create-shelf" action="/create-shelf/" method="post">
|
||||||
|
@ -63,10 +58,11 @@
|
||||||
</label>
|
</label>
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<button class="button is-primary" type="submit">Create shelf</button>
|
<button class="button is-primary" type="submit">Create shelf</button>
|
||||||
<label role="button" class="button" for="create-shelf-form-hide" tabindex="0">Cancel<label>
|
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="create-shelf-form-hide" %}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block columns">
|
<div class="block columns">
|
||||||
|
@ -82,13 +78,7 @@
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow">
|
||||||
<input type="radio" id="edit-shelf-form-hide" name="edit-shelf-form" class="toggle-control" checked>
|
<input type="radio" id="edit-shelf-form-hide" name="edit-shelf-form" class="toggle-control" checked>
|
||||||
<div class="toggle-content hidden">
|
<div class="toggle-content hidden">
|
||||||
<label for="edit-shelf-form-show">
|
{% include 'snippets/toggle/toggle_button.html' with text="Edit shelf" icon="pencil" class="is-clickable" controls_text="edit-shelf-form-show" %}
|
||||||
<div role="button" tabindex="0">
|
|
||||||
<span class="icon icon-pencil">
|
|
||||||
<span class="is-sr-only">Edit shelf</span>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -116,7 +106,7 @@
|
||||||
</label>
|
</label>
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<button class="button is-primary" type="submit">Update shelf</button>
|
<button class="button is-primary" type="submit">Update shelf</button>
|
||||||
<label role="button" class="button" for="edit-shelf-form-hide" tabindex="0">Cancel<label>
|
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="edit-shelf-form-hide" %}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue