moviewyrm/bookwyrm/templates/user/groups.html
Hugh Rundle f3181690a2 change group owner from 'manager' to 'user'
This will allow privacy management to use existing code.
Some template updates also are for rationalising how
groups are created and edited.
2021-09-27 15:36:41 +10:00

42 lines
1.4 KiB
HTML

{% extends 'user/layout.html' %}
{% load i18n %}
{% block header %}
<div class="columns is-mobile">
<div class="column">
<h1 class="title">
{% if is_self %}
{% trans "Your Groups" %}
{% else %}
{% blocktrans with username=user.display_name %}Groups: {{ username }}{% endblocktrans %}
{% endif %}
</h1>
</div>
{% if is_self %}
<div class="column is-narrow">
{% trans "Create group" as button_text %}
{% include 'snippets/toggle/open_button.html' with controls_text="create_group" icon_with_text="plus" text=button_text %}
</div>
{% endif %}
</div>
{% endblock %}
{% block panel %}
<section class="block">
<form name="create-group" method="post" action="{% url 'user-groups' request.user.username %}" class="box is-hidden" id="create_group">
<header class="columns">
<h3 class="title column">{% trans "Create group" %}</h3>
<div class="column is-narrow">
{% include 'snippets/toggle/toggle_button.html' with controls_text="create_group" label="close" class="delete" nonbutton=True %}
</div>
</header>
{% include 'groups/form.html' %}
</form>
{% include 'groups/user_groups.html' with groups=groups %}
</section>
<div>
{% include 'snippets/pagination.html' with page=user_groups path=path %}
</div>
{% endblock %}