forked from DGNum/gestioCOF
e64a443fb3
- Pour voir les groupes, il faut la permission `kfet.manage_perms` - Pour modifier les groupes auxquels fait parti un compte, il la faut également
49 lines
1.3 KiB
HTML
49 lines
1.3 KiB
HTML
{% extends 'kfet/base.html' %}
|
|
|
|
{% block title %}Groupes de comptes{% endblock %}
|
|
{% block content-header-title %}Groupes de comptes{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
<div class="col-sm-4 col-md-3 col-content-left">
|
|
<div class="content-left">
|
|
<div class="content-left-top text-center">
|
|
<div class="line"></div>
|
|
</div>
|
|
<div class="buttons">
|
|
<a class="btn btn-primary btn-lg" href="">Créer un groupe</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-8 col-md-9 col-content-right">
|
|
{% include 'kfet/base_messages.html' %}
|
|
<div class="content-right">
|
|
{% for group in groups %}
|
|
<div class="content-right-block">
|
|
<h2>{{ group.name }}</h2>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<h3>Permissions</h3>
|
|
<ul>
|
|
{% for perm in group.permissions.all %}
|
|
<li>{{ perm.name }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<h3>Comptes</h3>
|
|
<ul>
|
|
{% for user in group.user_set.all %}
|
|
<li>{{ user.profile.account_kfet }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|