bookwyrm-mastodon/bookwyrm/templates/shelf/edit_shelf_form.html

31 lines
1.1 KiB
HTML

{% extends 'components/inline_form.html' %}
{% load i18n %}
{% block header %}
{% trans "Edit Shelf" %}
{% endblock %}
{% block form %}
<form name="edit-shelf" action="{{ shelf.local_path }}" method="post">
{% csrf_token %}
<input type="hidden" name="user" value="{{ request.user.id }}">
<div class="columns is-mobile">
{% if shelf.editable %}
<div class="column">
<label class="label" for="id_name">{% trans "Name:" %}</label>
<input type="text" name="name" maxlength="100" class="input" required="true" value="{{ shelf.name }}" id="id_name">
</div>
{% else %}
<input type="hidden" name="name" required="true" value="{{ shelf.name }}">
{% endif %}
<div class="column">
<label class="label" for="privacy_{{ shelf.id }}">{% trans "Shelf privacy:" %}</label>
{% include 'snippets/privacy_select.html' with current=shelf.privacy uuid=shelf.id no_label=True %}
</div>
</div>
<button class="button is-primary" type="submit">{% trans "Update shelf" %}</button>
</form>
{% endblock %}