moviewyrm/bookwyrm/templates/snippets/reading_modals/stop_reading_modal.html

43 lines
1.5 KiB
HTML
Raw Normal View History

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 %}
Stop Reading "<em>{{ book_title }}</em>"
2022-02-11 13:33:46 +00:00
{% endblocktrans %}
{% endblock %}
{% block modal-form-open %}
<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">
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">
<label class="label" for="id_read_until_date_{{ uuid }}">
{% trans "Read until" %}
2022-02-11 13:33:46 +00:00
</label>
<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 %}
{% include "snippets/reading_modals/form.html" with optional=True type="stop_modal" %}
2022-02-11 13:33:46 +00:00
{% endblock %}