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

43 lines
1.4 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-06-08 18:23:53 +00:00
{% blocktrans trimmed with book_title=book.title %}
Start "<em>{{ book_title }}</em>"
{% endblocktrans %}
2021-01-17 18:10:59 +00:00
{% endblock %}
{% block modal-form-open %}
<form name="start-reading" action="{% url 'reading-status' 'start' book.id %}" method="post">
2021-01-17 18:10:59 +00:00
{% endblock %}
{% block modal-body %}
<section class="modal-card-body">
{% csrf_token %}
<div class="field">
2021-06-02 16:17:53 +00:00
<label class="label" for="start_id_start_date-{{ uuid }}">
2021-02-28 02:48:10 +00:00
{% trans "Started reading" %}
2021-01-17 18:10:59 +00:00
</label>
2021-06-02 16:17:53 +00:00
<input type="date" name="start_date" class="input" id="start_id_start_date-{{ uuid }}" value="{% now "Y-m-d" %}">
2021-01-17 18:10:59 +00:00
</div>
</section>
{% endblock %}
{% block modal-footer %}
<div class="columns">
<div class="column field">
<label for="post_status_start-{{ uuid }}">
<input type="checkbox" name="post-status" class="checkbox" id="post_status_start-{{ 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>
2021-06-02 16:17:53 +00:00
<div class="column has-text-right">
2021-02-28 02:48:10 +00:00
<button class="button is-success" type="submit">{% trans "Save" %}</button>
{% trans "Cancel" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="start-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 %}