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

41 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-02-28 02:48:10 +00:00
{% blocktrans 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="/start-reading/{{ book.id }}" method="post">
{% endblock %}
{% block modal-body %}
<section class="modal-card-body">
{% csrf_token %}
<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="start_id_start_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_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>
<div class="column">
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 %}