{% extends "management/base.html" %} {% load i18n lucide static %} {% comment %} One section per non-MEMBER role (management.views.ClubRoleListView) -- the plain MEMBER role every active club member holds automatically is excluded entirely, since listing it here would just be noise. "Grant role" opens a modal (controlpanel/_modal_form.html) rather than a separate page -- role_create is POST-only, see ClubRoleCreateView. {% endcomment %} {% block heading %}{% trans "Roles" %}{% endblock heading %} {% block actions %} {% endblock actions %} {% block panel %}
{% for value, label, description, roles_for_section in sections %} {% with role_label=label|capfirst %}

{{ role_label }}

{% if description %}

{{ description }}

{% endif %} {% for role in roles_for_section %} {% empty %} {% endfor %}
{% trans "Member" %}
{{ role.member }}
{% csrf_token %}
{% blocktrans %}No one has the {{ role_label }} role yet.{% endblocktrans %}
{% endwith %} {% endfor %}
{% trans "Grant role" as grant_role_label %} {% url 'management:role_create' as role_create_url %} {% include "controlpanel/_modal_form.html" with modal_id="grant_role_modal" title=grant_role_label form=role_form action_url=role_create_url submit_label=grant_role_label submit_icon="shield-check" %} {% endblock panel %} {% block extra_body %} {% endblock extra_body %}