{% extends "core/base.jinja" %} {% block additional_js %} {% endblock %} {% block additional_css %} {% endblock %} {% macro display_subform(subform) %}
{# hidden fields #} {{ subform.ORDER }} {{ subform.id }} {{ subform.club }} {{ subform.is_presidency|add_attr("x-model=isPresidency") }} {{ subform.is_board|add_attr("x-model=isBoard") }}
{{ subform.name.value() }} {% if not subform.instance.is_active -%} ({% trans %}inactive{% endtrans %}) {%- endif %}
{{ subform.non_field_errors() }}
{{ subform.name.as_field_group() }}
{{ subform.description.as_field_group() }}
{{ subform.is_active }} {{ subform.is_active.label_tag() }}
{{ subform.is_active.help_text }}
{% set groups = subform.instance.linked_groups.all()|list %} {% if groups %}

{% trans %}Linked groups : {% endtrans %} {{ groups|map(attribute="name")|join(", ") }}

{% trans trimmed %} Users receiving this role will also be assigned to those groups {% endtrans %}

{% endif %}
{% endmacro %} {% block content %}

{% trans trimmed %} Roles give rights on the club. Higher roles grant more rights, and the members having them are displayed higher in the club members list. {% endtrans %}

{% trans trimmed %} On this page, you can edit their name and description, as well as their order. You can also drag roles from a category to another (e.g. a board role can be made into a presidency role). {% endtrans %}

{% csrf_token %} {{ form.management_form }} {{ form.non_form_errors() }}

{% trans %}Presidency{% endtrans %}

{% trans %}add role{% endtrans %}
{% trans %}Help{% endtrans %} {# The style we use for markdown rendering is quite nice for what we want to display, so we are just gonna reuse it. #}

{% trans %}Users with a presidency role can :{% endtrans %}

  • {% trans %}create new club roles and edit existing ones{% endtrans %}
  • {% trans %}manage the club counters{% endtrans %}
  • {% trans %}add new members with any active role and end any membership{% endtrans %}

{% trans %}They also have all the rights of the club board.{% endtrans %}

{% for subform in form %} {% if subform.is_presidency.value() %} {{ display_subform(subform) }} {% endif %} {% endfor %}

{% trans %}Board{% endtrans %}

{% trans %}add role{% endtrans %}
{% trans %}Help{% endtrans %}

{% trans trimmed %} Board members can do most administrative actions in the club, including : {% endtrans %}

  • {% trans %}manage the club posters{% endtrans %}
  • {% trans %}create news for the club{% endtrans %}
  • {% trans %}click users on the club's counters{% endtrans %}
  • {% trans trimmed %} add new members and end active memberships for roles that are lower than their own. {% endtrans %}
{% for subform in form %} {% if subform.is_board.value() and not subform.is_presidency.value() %} {{ display_subform(subform) }} {% endif %} {% endfor %}

{% trans %}Members{% endtrans %}

{% trans %}add role{% endtrans %}
{% trans %}Help{% endtrans %}

{% trans %}Simple members cannot perform administrative actions.{% endtrans %}

{% for subform in form %} {% if not subform.is_board.value() %} {{ display_subform(subform) }} {% endif %} {% endfor %}

{% endblock content %}