moviewyrm/bookwyrm/templates/user/create_shelf_form.html

28 lines
841 B
HTML
Raw Normal View History

2021-02-03 20:36:20 +00:00
{% extends 'components/inline_form.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-02-03 20:36:20 +00:00
{% block header %}
2021-02-28 02:48:10 +00:00
{% trans "Create New Shelf" %}
2021-02-03 20:36:20 +00:00
{% endblock %}
{% 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">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_name_create">{% trans "Name:" %}</label>
2021-02-03 20:36:20 +00:00
<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">
2021-02-28 02:48:10 +00:00
<button class="button is-primary" type="submit">{% trans "Create shelf" %}</button>
2021-02-03 20:36:20 +00:00
</div>
</div>
</form>
{% endblock %}