2022-02-11 13:33:46 +00:00
|
|
|
{% extends 'snippets/reading_modals/layout.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
|
|
|
|
|
|
|
{% block modal-title %}
|
|
|
|
{% blocktrans trimmed with book_title=book|book_title %}
|
2022-02-12 18:44:06 +00:00
|
|
|
Stop Reading "<em>{{ book_title }}</em>"
|
2022-02-11 13:33:46 +00:00
|
|
|
{% endblocktrans %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-form-open %}
|
2022-02-12 18:44:06 +00:00
|
|
|
<form name="stop-reading-{{ uuid }}" action="{% url 'reading-status' 'stop' book.id %}" method="post" {% if not refresh %}class="submit-status"{% endif %}>
|
2022-02-11 13:33:46 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="id" value="{{ readthrough.id }}">
|
2022-05-26 18:09:11 +00:00
|
|
|
<input type="hidden" name="reading_status" value="stopped-reading">
|
2022-02-11 13:33:46 +00:00
|
|
|
<input type="hidden" name="shelf" value="{{ move_from }}">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block reading-dates %}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-half">
|
|
|
|
<div class="field">
|
2022-02-14 17:12:08 +00:00
|
|
|
<label class="label" for="stop_id_start_date_{{ uuid }}">
|
2022-02-11 13:33:46 +00:00
|
|
|
{% trans "Started reading" %}
|
|
|
|
</label>
|
2022-02-14 17:12:08 +00:00
|
|
|
<input type="date" name="start_date" class="input" id="stop_id_start_date_{{ uuid }}" value="{{ readthrough.start_date | date:"Y-m-d" }}">
|
2022-02-11 13:33:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column is-half">
|
|
|
|
<div class="field">
|
2022-02-12 10:19:00 +00:00
|
|
|
<label class="label" for="id_read_until_date_{{ uuid }}">
|
|
|
|
{% trans "Read until" %}
|
2022-02-11 13:33:46 +00:00
|
|
|
</label>
|
2022-02-25 21:38:58 +00:00
|
|
|
<input type="date" name="finish_date" class="input" id="id_read_until_date_{{ uuid }}" value="{% now "Y-m-d" %}">
|
2022-02-11 13:33:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block form %}
|
2022-02-12 18:44:06 +00:00
|
|
|
{% include "snippets/reading_modals/form.html" with optional=True type="stop_modal" %}
|
2022-02-11 13:33:46 +00:00
|
|
|
{% endblock %}
|