2021-01-29 16:51:36 +00:00
|
|
|
{% extends 'components/modal.html' %}
|
2021-01-17 18:10:59 +00:00
|
|
|
|
|
|
|
{% block modal-title %}
|
|
|
|
Finish "<em>{{ book.title }}</em>"
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block modal-form-open %}
|
|
|
|
<form name="finish-reading" action="/finish-reading/{{ book.id }}" method="post">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-body %}
|
|
|
|
<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>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-footer %}
|
|
|
|
<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 %}
|
2020-11-08 23:53:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-17 18:10:59 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block modal-form-close %}</form>{% endblock %}
|