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 %}
|
2021-06-09 17:36:52 +00:00
|
|
|
<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>
|
2021-03-01 01:10:30 +00:00
|
|
|
{% 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 %}
|