mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 16:33:47 +00:00
Affichage plus lisible pour la suppression des droits
This commit is contained in:
parent
b8887b2b61
commit
8579b7d60c
1 changed files with 20 additions and 11 deletions
|
@ -35,19 +35,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<tbody>
|
||||||
<tr>
|
|
||||||
{% for key, values in userform.items %}
|
|
||||||
<th>{{ key }}</th>
|
|
||||||
{% endfor %}
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tr>
|
|
||||||
{% for key, values in userform.items %}
|
{% for key, values in userform.items %}
|
||||||
{% bootstrap_form_errors values %}
|
<tr class="active">
|
||||||
<th>{{ values.rights }}</th>
|
<td>
|
||||||
{% endfor %}
|
<a data-toggle="collapse" href="#collapseRight_{{key}}" aria-expanded="false" aria-controls="collapseRights_{{key}}">
|
||||||
|
<b>{{ key }}</b> ( {{values.rights|length }} users )
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="collapse" id="collapseRight_{{key}}">
|
||||||
|
<ul class="list-group" style="margin-bottom: 0px">
|
||||||
|
{% for user in values.rights %}
|
||||||
|
<li class="list-group-item col-xs-6 col-sm-4 col-md-3" style="border: none;">{{ user }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% bootstrap_button "Modifier" button_type="submit" icon="star" %}
|
{% bootstrap_button "Modifier" button_type="submit" icon="star" %}
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue