2021-01-30 21:11:43 +00:00
|
|
|
{% extends 'components/modal.html' %}
|
|
|
|
|
|
|
|
{% block modal-title %}
|
|
|
|
Want to Read "<em>{{ book.title }}</em>"
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block modal-form-open %}
|
|
|
|
<form name="shelve" action="/shelve/" method="post">
|
|
|
|
{% 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>
|
|
|
|
Post to feed
|
|
|
|
</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-01-30 21:11:43 +00:00
|
|
|
<span>Want to read</span>
|
|
|
|
</button>
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with text="Cancel" controls_text="want-to-read" controls_uid=uuid %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block modal-form-close %}</form>{% endblock %}
|