moviewyrm/bookwyrm/templates/lists/form.html

46 lines
1.8 KiB
HTML
Raw Normal View History

2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-01-31 18:34:25 +00:00
{% csrf_token %}
<input type="hidden" name="user" value="{{ request.user.id }}">
<div class="columns">
<div class="column">
<div class="field">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_name">{% trans "Name:" %}</label>
2021-01-31 18:34:25 +00:00
{{ list_form.name }}
</div>
<div class="field">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_description">{% trans "Description:" %}</label>
2021-01-31 18:34:25 +00:00
{{ list_form.description }}
</div>
</div>
<div class="column">
<fieldset class="field">
2021-02-28 02:48:10 +00:00
<legend class="label">{% trans "List curation:" %}</legend>
2021-01-31 18:34:25 +00:00
<label class="field">
2021-02-28 02:48:10 +00:00
<input type="radio" name="curation" value="closed"{% if not list or list.curation == 'closed' %} checked{% endif %}> {% trans "Closed" %}
<p class="help mb-2">{% trans "Only you can add and remove books to this list" %}</p>
2021-01-31 18:34:25 +00:00
</label>
<label class="field">
2021-02-28 02:48:10 +00:00
<input type="radio" name="curation" value="curated"{% if list.curation == 'curated' %} checked{% endif %}> {% trans "Curated" %}
<p class="help mb-2">{% trans "Anyone can suggest books, subject to your approval" %}</p>
2021-01-31 18:34:25 +00:00
</label>
<label class="field">
2021-02-28 02:48:10 +00:00
<input type="radio" name="curation" value="open"{% if list.curation == 'open' %} checked{% endif %}> {% trans "Open" %}
<p class="help mb-2">{% trans "Anyone can add books to this list" %}</p>
2021-01-31 18:34:25 +00:00
</label>
</fieldset>
</div>
</div>
<div class="field has-addons">
<div class="control">
{% include 'snippets/privacy_select.html' with current=list.privacy %}
</div>
<div class="control">
2021-02-28 02:48:10 +00:00
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
2021-01-31 18:34:25 +00:00
</div>
</div>