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 }}">
|
|
|
|
<input type="hidden" name="reading_status" value="stop">
|
|
|
|
<input type="hidden" name="shelf" value="{{ move_from }}">
|
|
|
|
{% 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">
|
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-12 10:19:00 +00:00
|
|
|
<input type="date" name="read_until_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 %}
|