forked from mirrors/bookwyrm
485f4b7eba
This reverts commit 869cfa6d34
.
40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
{% extends 'components/modal.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block modal-title %}
|
|
{% blocktrans with book_title=book.title %}Start "<em>{{ book_title }}</em>"{% endblocktrans %}
|
|
{% 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">
|
|
{% trans "Started reading" %}
|
|
<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>
|
|
{% trans "Post to feed" %}
|
|
</label>
|
|
{% include 'snippets/privacy_select.html' %}
|
|
</div>
|
|
<div class="column">
|
|
<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 %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
{% block modal-form-close %}</form>{% endblock %}
|