2021-08-16 18:30:11 +00:00
|
|
|
{% extends 'snippets/reading_modals/layout.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
|
|
|
|
|
|
|
{% block modal-title %}
|
|
|
|
{% blocktrans trimmed with book_title=book|book_title %}
|
|
|
|
Finish "<em>{{ book_title }}</em>"
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-form-open %}
|
2021-09-09 15:06:36 +00:00
|
|
|
<form name="finish-reading" action="{% url 'reading-status' 'finish' book.id %}" method="post" class="submit-status">
|
2021-08-16 19:47:12 +00:00
|
|
|
{% csrf_token %}
|
2021-09-29 17:59:36 +00:00
|
|
|
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
2021-08-16 20:32:20 +00:00
|
|
|
<input type="hidden" name="reading_status" value="read">
|
2021-08-16 18:30:11 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block reading-dates %}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-half">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="finish_id_start_date_{{ uuid }}">
|
|
|
|
{% trans "Started reading" %}
|
|
|
|
</label>
|
|
|
|
<input type="date" name="start_date" class="input" id="finish_id_start_date_{{ uuid }}" value="{{ readthrough.start_date | date:"Y-m-d" }}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column is-half">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="id_finish_date_{{ uuid }}">
|
|
|
|
{% trans "Finished reading" %}
|
|
|
|
</label>
|
|
|
|
<input type="date" name="finish_date" class="input" id="id_finish_date_{{ uuid }}" value="{% now "Y-m-d" %}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2021-09-29 22:35:08 +00:00
|
|
|
|
|
|
|
{% block form %}
|
|
|
|
{% include "snippets/reading_modals/form.html" with optional=True type="finish_modal" %}
|
|
|
|
{% endblock %}
|