moviewyrm/bookwyrm/templates/snippets/readthrough_form.html

24 lines
1.1 KiB
HTML
Raw Normal View History

2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-01-10 18:35:28 +00:00
{% csrf_token %}
<input type="hidden" name="id" value="{{ readthrough.id }}">
<input type="hidden" name="book" value="{{ book.id }}">
2021-01-10 18:35:28 +00:00
<div class="field">
<label class="label" tabindex="0" id="add_readthrough_focus_{{ readthrough.id }}" for="id_start_date_{{ readthrough.id }}">
2021-02-28 02:48:10 +00:00
{% trans "Started reading" %}
2021-01-10 18:35:28 +00:00
</label>
<input type="date" name="start_date" class="input" id="id_start_date_{{ readthrough.id }}" value="{{ readthrough.start_date | date:"Y-m-d" }}">
2021-01-10 18:35:28 +00:00
</div>
{# Only show progress for editing existing readthroughs #}
{% if readthrough.id and not readthrough.finish_date %}
2021-09-29 22:46:54 +00:00
<label class="label" for="id_progress_{{ readthrough.id }}{{ controls_uid }}">
2021-02-28 02:48:10 +00:00
{% trans "Progress" %}
2021-01-22 21:00:20 +00:00
</label>
2021-08-28 16:41:36 +00:00
{% include "snippets/progress_field.html" %}
{% endif %}
2021-01-10 18:35:28 +00:00
<div class="field">
<label class="label" for="id_finish_date_{{ readthrough.id }}">
2021-02-28 02:48:10 +00:00
{% trans "Finished reading" %}
2021-01-10 18:35:28 +00:00
</label>
<input type="date" name="finish_date" class="input" id="id_finish_date_{{ readthrough.id }}" value="{{ readthrough.finish_date | date:"Y-m-d" }}">
2021-01-10 18:35:28 +00:00
</div>