forked from mirrors/bookwyrm
afdf5fc8ec
RIP, but it was time
45 lines
2.3 KiB
HTML
45 lines
2.3 KiB
HTML
{% load bookwyrm_tags %}
|
|
<div class="modal toggle-content hidden" id="finish-reading-{{ uuid }}">
|
|
<div class="modal-background"></div>
|
|
<div class="modal-card">
|
|
<header class="modal-card-head">
|
|
<p class="modal-card-title">Finish "{{ book.title }}"</p>
|
|
{% include 'snippets/toggle/close_button.html' with label="close" controls_text="finish-reading" controls_uid=uuid class="delete" %}
|
|
</header>
|
|
{% active_read_through book user as readthrough %}
|
|
<form name="finish-reading" action="/finish-reading/{{ book.id }}" method="post">
|
|
<section class="modal-card-body">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
|
<div class="field">
|
|
<label class="label">
|
|
Started reading
|
|
<input type="date" name="start_date" class="input" id="finish_id_start_date-{{ uuid }}" value="{{ readthrough.start_date | date:"Y-m-d" }}">
|
|
</label>
|
|
</div>
|
|
<div class="field">
|
|
<label class="label">
|
|
Finished reading
|
|
<input type="date" name="finish_date" class="input" id="id_finish_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-{{ uuid }}">
|
|
<input type="checkbox" name="post-status" class="checkbox" id="post_status-{{ uuid }}" checked>
|
|
Post to feed
|
|
</label>
|
|
{% include 'snippets/privacy_select.html' %}
|
|
</div>
|
|
<div class="column">
|
|
<button type="submit" class="button is-success">Save</button>
|
|
{% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="finish-reading" controls_uid=uuid %}
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</form>
|
|
</div>
|
|
<label class="modal-close is-large" for="finish-reading-{{ uuid }}" aria-label="close" role="button"></label>
|
|
</div>
|