2021-01-30 21:11:43 +00:00
|
|
|
{% extends 'components/modal.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-01-30 21:11:43 +00:00
|
|
|
|
|
|
|
{% block modal-title %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% blocktrans with book_title=book.title %}Want to Read "<em>{{ book_title }}</em>"{% endblocktrans %}
|
2021-01-30 21:11:43 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-form-open %}
|
2021-06-09 17:36:52 +00:00
|
|
|
<form name="shelve" action="{% url 'reading-status' 'want' book.id %}" method="post">
|
2021-01-30 21:11:43 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="book" value="{{ active_shelf.book.id }}">
|
2021-01-30 23:18:38 +00:00
|
|
|
<input type="hidden" name="shelf" value="to-read">
|
2021-01-30 21:11:43 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-footer %}
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column field">
|
|
|
|
<label for="post_status_want-{{ uuid }}">
|
|
|
|
<input type="checkbox" name="post-status" class="checkbox" id="post_status_want-{{ uuid }}" checked>
|
2021-02-28 02:48:10 +00:00
|
|
|
{% trans "Post to feed" %}
|
2021-01-30 21:11:43 +00:00
|
|
|
</label>
|
|
|
|
{% include 'snippets/privacy_select.html' %}
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
2021-01-30 23:18:38 +00:00
|
|
|
<button class="button is-success" type="submit">
|
2021-02-28 02:48:10 +00:00
|
|
|
<span>{% trans "Want to read" %}</span>
|
2021-01-30 21:11:43 +00:00
|
|
|
</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="want-to-read" controls_uid=uuid %}
|
2021-01-30 21:11:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block modal-form-close %}</form>{% endblock %}
|