2021-01-17 16:26:28 +00:00
|
|
|
<div class="modal hidden" id="start-reading-{{ uuid }}">
|
|
|
|
<div class="modal-background"></div>
|
|
|
|
<div class="modal-card">
|
|
|
|
<header class="modal-card-head">
|
|
|
|
<p class="modal-card-title">Start "{{ book.title }}"</p>
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with label="close" controls_text="start-reading" controls_uid=uuid class="delete" %}
|
|
|
|
</header>
|
|
|
|
<form name="start-reading" action="/start-reading/{{ book.id }}" method="post">
|
|
|
|
<section class="modal-card-body">
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">
|
|
|
|
Started reading
|
|
|
|
<input type="date" name="start_date" class="input" id="start_id_start_date-{{ uuid }}" value="{% now "Y-m-d" %}">
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<footer class="modal-card-foot">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column field">
|
|
|
|
<label for="post_status_start-{{ uuid }}">
|
|
|
|
<input type="checkbox" name="post-status" class="checkbox" id="post_status_start-{{ uuid }}" checked>
|
|
|
|
Post to feed
|
2020-11-08 23:53:53 +00:00
|
|
|
</label>
|
2021-01-17 16:26:28 +00:00
|
|
|
{% include 'snippets/privacy_select.html' %}
|
2020-11-08 23:53:53 +00:00
|
|
|
</div>
|
2021-01-17 16:26:28 +00:00
|
|
|
<div class="column">
|
|
|
|
<button class="button is-success" type="submit">Save</button>
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="start-reading" controls_uid=uuid %}
|
2020-11-08 23:53:53 +00:00
|
|
|
</div>
|
2021-01-17 16:26:28 +00:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</form>
|
2020-11-08 23:53:53 +00:00
|
|
|
</div>
|
2021-01-17 16:26:28 +00:00
|
|
|
<label class="modal-close is-large" for="start-reading-{{ uuid }}" aria-label="close"></label>
|
2020-11-08 23:53:53 +00:00
|
|
|
</div>
|