Updates edit/create shelf forms

This commit is contained in:
Mouse Reeve
2021-09-28 16:37:24 -07:00
parent dba0aaff2c
commit 24553e0e35
4 changed files with 29 additions and 33 deletions

View File

@ -7,21 +7,7 @@
{% block form %}
<form name="create-shelf" action="{% url 'shelf-create' %}" method="post">
{% csrf_token %}
<input type="hidden" name="user" value="{{ request.user.id }}">
<div class="field">
<label class="label" for="id_name_create">{% trans "Name:" %}</label>
<input type="text" name="name" maxlength="100" class="input" required="true" id="id_name_create">
</div>
<div class="field has-addons">
<div class="control">
{% include 'snippets/privacy_select.html' %}
</div>
<div class="control">
<button class="button is-primary" type="submit">{% trans "Create Shelf" %}</button>
</div>
</div>
{% include "shelf/form.html" with editable=shelf.editable form=create_form %}
</form>
{% endblock %}