forked from mirrors/bookwyrm
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
{% 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 %}
|
|
<form name="finish-reading" action="{% url 'reading-status' 'finish' book.id %}" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="reading_status" value="read">
|
|
{% 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 %}
|