moviewyrm/bookwyrm/templates/snippets/start_reading_modal.html

37 lines
1.8 KiB
HTML
Raw Normal View History

<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>
{% include 'snippets/privacy_select.html' %}
2020-11-08 23:53:53 +00:00
</div>
<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>
</div>
</footer>
</form>
2020-11-08 23:53:53 +00:00
</div>
<label class="modal-close is-large" for="start-reading-{{ uuid }}" aria-label="close"></label>
2020-11-08 23:53:53 +00:00
</div>