moviewyrm/bookwyrm/templates/snippets/shelve_button/finish_reading_modal.html

48 lines
1.6 KiB
HTML
Raw Normal View History

2021-01-29 16:51:36 +00:00
{% extends 'components/modal.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-01-17 18:10:59 +00:00
{% block modal-title %}
2021-02-28 02:48:10 +00:00
{% blocktrans with book_title=book.title %}Finish "<em>{{ book_title }}</em>"{% endblocktrans %}
2021-01-17 18:10:59 +00:00
{% endblock %}
{% block modal-form-open %}
<form name="finish-reading" action="/finish-reading/{{ book.id }}" method="post">
{% endblock %}
{% block modal-body %}
<section class="modal-card-body">
{% csrf_token %}
<input type="hidden" name="id" value="{{ readthrough.id }}">
<div class="field">
<label class="label">
2021-02-28 02:48:10 +00:00
{% trans "Started reading" %}
2021-01-17 18:10:59 +00:00
<input type="date" name="start_date" class="input" id="finish_id_start_date-{{ uuid }}" value="{{ readthrough.start_date | date:"Y-m-d" }}">
</label>
</div>
<div class="field">
<label class="label">
2021-02-28 02:48:10 +00:00
{% trans "Finished reading" %}
2021-01-17 18:10:59 +00:00
<input type="date" name="finish_date" class="input" id="id_finish_date-{{ uuid }}" value="{% now "Y-m-d" %}">
</label>
</div>
</section>
{% endblock %}
{% block modal-footer %}
<div class="columns">
<div class="column field">
<label for="post_status-{{ uuid }}">
<input type="checkbox" name="post-status" class="checkbox" id="post_status-{{ uuid }}" checked>
2021-02-28 02:48:10 +00:00
{% trans "Post to feed" %}
2021-01-17 18:10:59 +00:00
</label>
{% include 'snippets/privacy_select.html' %}
</div>
<div class="column">
2021-02-28 02:48:10 +00:00
<button type="submit" class="button is-success">{% trans "Save" %}</button>
2021-01-17 18:10:59 +00:00
{% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="finish-reading" controls_uid=uuid %}
2020-11-08 23:53:53 +00:00
</div>
</div>
2021-01-17 18:10:59 +00:00
{% endblock %}
{% block modal-form-close %}</form>{% endblock %}