moviewyrm/bookwyrm/templates/groups/form.html

37 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2021-09-23 21:51:51 +00:00
{% load i18n %}
{% csrf_token %}
2021-09-24 10:34:11 +00:00
2021-09-27 06:50:51 +00:00
<div class="columns">
2021-09-23 21:51:51 +00:00
<div class="column is-two-thirds">
<input type="hidden" name="user" value="{{ request.user.id }}" />
2021-09-23 21:51:51 +00:00
<div class="field">
<label class="label" for="group_form_id_name">{% trans "Group Name:" %}</label>
2021-09-23 21:51:51 +00:00
{{ group_form.name }}
</div>
<div class="field">
<label class="label" for="group_form_id_description">{% trans "Group Description:" %}</label>
2021-09-23 21:51:51 +00:00
{{ group_form.description }}
</div>
</div>
</div>
2021-12-31 01:29:06 +00:00
<div class="is-flex">
2021-09-23 21:51:51 +00:00
{% if group.id %}
2022-03-10 18:49:33 +00:00
<div>
2021-12-31 01:29:06 +00:00
<button type="button" data-modal-open="delete_group" class="button is-danger">
{% trans "Delete group" %}
</button>
2021-09-23 21:51:51 +00:00
</div>
{% endif %}
2022-03-10 18:49:33 +00:00
<div class="is-flex is-flex-grow-1 is-justify-content-flex-end">
<div class="field has-addons">
<div class="control">
{% include 'snippets/privacy_select_no_followers.html' with current=group.privacy %}
</div>
<div class="control">
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
</div>
2021-12-31 01:29:06 +00:00
</div>
</div>
</div>