More formatting for editing readthrough
This commit is contained in:
parent
ec463ff4c8
commit
9ef63fff4a
|
@ -79,41 +79,43 @@
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<label class="button is-small" for="edit-readthrough-{{ readthrough.id }}">
|
<label class="button is-small" for="edit-readthrough-{{ readthrough.id }}">
|
||||||
<span class="icon icon-pencil">
|
<span class="icon icon-pencil">
|
||||||
<span class="is-sr-only">Edit readthrough dates</span>
|
<span class="is-sr-only">Edit read-through dates</span>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="button is-small" for="delete-readthrough-{{ readthrough.id }}">
|
<label class="button is-small" for="delete-readthrough-{{ readthrough.id }}">
|
||||||
<span class="icon icon-x">
|
<span class="icon icon-x">
|
||||||
<span class="is-sr-only">Delete this readthrough</span>
|
<span class="is-sr-only">Delete this read-through</span>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="block">
|
||||||
<input class="toggle-control" type="radio" name="show-edit-readthrough" id="edit-readthrough-{{ readthrough.id }}">
|
<input class="toggle-control" type="radio" name="show-edit-readthrough" id="edit-readthrough-{{ readthrough.id }}">
|
||||||
<div class="toggle-content hidden">
|
<div class="toggle-content hidden">
|
||||||
<form name="edit-readthrough" action="/edit-readthrough" method="post">
|
<div class="box">
|
||||||
|
<form name="edit-readthrough" action="/edit-readthrough" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="start_date">
|
<label class="label" for="start_date">
|
||||||
Started reading
|
Started reading
|
||||||
<input type="date" name="start_date" class="input" id="id_start_date-{{ readthrough.id }}" value="{{ readthrough.start_date | date:"Y-m-d" }}">
|
<input type="date" name="start_date" class="input" id="id_start_date-{{ readthrough.id }}" value="{{ readthrough.start_date | date:"Y-m-d" }}">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="finish_date">
|
<label class="label" for="finish_date">
|
||||||
Finished reading
|
Finished reading
|
||||||
<input type="date" name="finish_date" class="input" id="id_finish_date-{{ readthrough.id }}" value="{{ readthrough.finish_date | date:"Y-m-d" }}">
|
<input type="date" name="finish_date" class="input" id="id_finish_date-{{ readthrough.id }}" value="{{ readthrough.finish_date | date:"Y-m-d" }}">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<button class="button is-small" type="submit">Save</button>
|
<button class="button is-primary" type="submit">Save</button>
|
||||||
<label class="button is-small" for="show-readthrough-{{ readthrough.id }}">Cancel</label>
|
<label class="button" for="show-readthrough-{{ readthrough.id }}">Cancel</label>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<div class="modal-background"></div>
|
<div class="modal-background"></div>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
<p class="modal-card-title">Started "{{ book.title }}"</p>
|
<p class="modal-card-title">Start "{{ book.title }}"</p>
|
||||||
<label class="delete" for="start-reading-{{ uuid }}" aria-label="close"></label>
|
<label class="delete" for="start-reading-{{ uuid }}" aria-label="close"></label>
|
||||||
</header>
|
</header>
|
||||||
<form name="start-reading" action="/start-reading" method="post">
|
<form name="start-reading" action="/start-reading" method="post">
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
<div class="modal-background"></div>
|
<div class="modal-background"></div>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<header class="modal-card-head">
|
||||||
<p class="modal-card-title">Finished "{{ book.title }}"</p>
|
<p class="modal-card-title">Finish "{{ book.title }}"</p>
|
||||||
<label class="delete" for="finish-reading-{{ uuid }}" aria-label="close"></label>
|
<label class="delete" for="finish-reading-{{ uuid }}" aria-label="close"></label>
|
||||||
</header>
|
</header>
|
||||||
{% active_read_through book user as readthrough %}
|
{% active_read_through book user as readthrough %}
|
||||||
|
|
Loading…
Reference in New Issue