mirror of https://gitlab.crans.org/bde/nk20
Display the associated club of the role in the permission page
This commit is contained in:
parent
4c29d855d2
commit
ab5d5a6e94
|
@ -15,14 +15,14 @@
|
||||||
{% regroup active_memberships by roles as memberships_per_role %}
|
{% regroup active_memberships by roles as memberships_per_role %}
|
||||||
{% for role in roles %}
|
{% for role in roles %}
|
||||||
<li class="{% if not role.clubs %}no-club{% endif %}">
|
<li class="{% if not role.clubs %}no-club{% endif %}">
|
||||||
{{ role }} {% if role.weirole %}(<em>Pour le WEI</em>){% endif %}
|
{{ role }} {% if role.weirole %}(<em>Pour le WEI</em>){% endif %} {% if role.for_club %}(<em>Pour le club {{ role.for_club }} uniquement</em>){% endif %}
|
||||||
{% if role.clubs %}
|
{% if role.clubs %}
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
{% trans "Own this role in the clubs" %} {{ role.clubs|join:", " }}
|
{% trans "Own this role in the clubs" %} {{ role.clubs|join:", " }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for permission in role.permissions.permissions.all %}
|
{% for permission in role.permissions.all %}
|
||||||
<li data-toggle="tooltip" title="{% trans "Query:" %} {{ permission.query }}">{{ permission }} ({{ permission.type }} {{ permission.model }}{% if permission.permanent %}, {% trans "permanent" %}{% endif %})</li>
|
<li data-toggle="tooltip" title="{% trans "Query:" %} {{ permission.query }}">{{ permission }} ({{ permission.type }} {{ permission.model }}{% if permission.permanent %}, {% trans "permanent" %}{% endif %})</li>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<em>{% trans "No associated permission" %}</em>
|
<em>{% trans "No associated permission" %}</em>
|
||||||
|
|
Loading…
Reference in New Issue