forked from DGNum/gestioCOF
8c6d56b27c
K-Fêt - Integrate wagtail to serve "static" pages of old K-Fêt website - Fixture "kfetcms/kfet_wagtail_17_05" contains a copy of old website (as in May 2017). - Media files can be got until end of June 17 at http://partage.eleves.ens.fr//files/604e6dea2ceebc66b1936c6b3f911744/kfet_media.tar.gz Login/logout - Update package django_cas_ng to last version. - Clean COFCASBackend. - Change CAS version to 3 (version used on eleves.ens). This enables the logout redirection (for CAS ofc). - Add messages and clean existing ones on login/logout (for both outsider and cas users). Misc - Update settings to bypass an incompability between debug-toolbar and wagtailmenus packages. - Better management of dev/test-specific urls (if debug-toolbar wasn't in INSTALLED_APPS, media files were not served). - UI improvements.
55 lines
1.5 KiB
HTML
55 lines
1.5 KiB
HTML
{% extends "kfet/base_col_2.html" %}
|
|
|
|
{% block title %}Groupes de comptes{% endblock %}
|
|
{% block header-title %}Groupes de comptes{% endblock %}
|
|
|
|
{% block fixed-content %}
|
|
|
|
<div class="buttons btn-group btn-group-justified">
|
|
<a class="btn btn-primary btn-lg" href="{% url 'kfet.account.group.create' %}">Créer un groupe</a>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block main-content %}
|
|
|
|
{% for group in groups %}
|
|
<div class="content-right-block">
|
|
<div class="buttons-title">
|
|
<a class="btn btn-primary" href="{% url 'kfet.account.group.update' group.pk %}">
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
</a>
|
|
</div>
|
|
<h2>{{ group.name }}</h2>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<h3>Permissions</h3>
|
|
{% regroup group.permissions.all by content_type as grouped_perms %}
|
|
<ul class="list-unstyled">
|
|
{% for perms_group in grouped_perms %}
|
|
<li><b>{{ perms_group.grouper|title }}</b>
|
|
<ul class="list-unstyled">
|
|
{% for perm in perms_group.list %}
|
|
<li style="padding-left: 20px">{{ perm.name }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<h3>Comptes</h3>
|
|
<ul class="list-unstyled">
|
|
{% for user in group.user_set.all %}
|
|
<li>
|
|
<a href="{% url "kfet.account.update" user.profile.account_kfet.trigramme %}">
|
|
{{ user.profile.account_kfet }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|