2021-09-23 21:51:51 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="user" value="{{ request.user.id }}">
|
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">
|
2021-09-27 05:36:41 +00:00
|
|
|
<input type="hidden" name="user" value="{{ request.user.id }}" />
|
2021-09-24 10:34:11 +00:00
|
|
|
<input type="hidden" name="privacy" value="public" />
|
2021-09-23 21:51:51 +00:00
|
|
|
<div class="field">
|
2021-09-24 04:12:36 +00:00
|
|
|
<label class="label" for="id_name">{% trans "Group Name:" %}</label>
|
2021-09-23 21:51:51 +00:00
|
|
|
{{ group_form.name }}
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2021-09-24 04:12:36 +00:00
|
|
|
<label class="label" for="id_description">{% trans "Group Description:" %}</label>
|
2021-09-23 21:51:51 +00:00
|
|
|
{{ group_form.description }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-24 05:04:52 +00:00
|
|
|
<div class="columns is-mobile">
|
2021-09-23 21:51:51 +00:00
|
|
|
<div class="column">
|
|
|
|
<div class="field has-addons">
|
2021-09-27 05:36:41 +00:00
|
|
|
<div class="control">
|
2021-09-23 21:51:51 +00:00
|
|
|
{% include 'snippets/privacy_select.html' with current=group.privacy %}
|
2021-09-27 05:36:41 +00:00
|
|
|
</div>
|
2021-09-23 21:51:51 +00:00
|
|
|
<div class="control">
|
|
|
|
<button type="submit" class="button is-primary">{% trans "Save" %}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if group.id %}
|
|
|
|
<div class="column is-narrow">
|
|
|
|
{% trans "Delete group" as button_text %}
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with class="is-danger" text=button_text icon_with_text="x" controls_text="delete_group" controls_uid=group.id focus="modal_title_delete_group" %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-09-24 05:04:52 +00:00
|
|
|
</div>
|