moviewyrm/bookwyrm/templates/user/shelf/edit_shelf_form.html

32 lines
1,007 B
HTML
Raw Normal View History

2021-02-03 20:44:51 +00:00
{% extends 'components/inline_form.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-02-03 20:44:51 +00:00
{% block header %}
2021-02-28 02:48:10 +00:00
{% trans "Edit Shelf" %}
2021-02-03 20:44:51 +00:00
{% endblock %}
{% block form %}
<form name="edit-shelf" action="{{ shelf.local_path }}" method="post">
{% csrf_token %}
<input type="hidden" name="user" value="{{ request.user.id }}">
{% if shelf.editable %}
<div class="field">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_name">{% trans "Name:" %}</label>
2021-02-03 20:44:51 +00:00
<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="field has-addons">
<div class="control">
{% include 'snippets/privacy_select.html' with current=shelf.privacy %}
</div>
<div class="control">
2021-02-28 02:48:10 +00:00
<button class="button is-primary" type="submit">{% trans "Update shelf" %}</button>
2021-02-03 20:44:51 +00:00
</div>
</div>
</form>
{% endblock %}