mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
N'affiche le menu clubs et assos que si besoin
This commit is contained in:
parent
ecf61afdd2
commit
7cfe6180a3
2 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% include "pagination.html" with list=clubs_list %}
|
{% include "pagination.html" with list=clubs_list %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% load acl %}
|
||||||
|
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -38,7 +40,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for club in clubs_list %}
|
{% for club in clubs_list %}
|
||||||
<tr>
|
{% can_view club %}
|
||||||
|
<tr>
|
||||||
<td>{{ club.surname }}</td>
|
<td>{{ club.surname }}</td>
|
||||||
<td>{{ club.pseudo }}</td>
|
<td>{{ club.pseudo }}</td>
|
||||||
<td>{{ club.room }}</td>
|
<td>{{ club.room }}</td>
|
||||||
|
@ -52,6 +55,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<td><a href="{% url "users:profil" club.id%}" class="btn btn-primary btn-sm" role="button"><i class="glyphicon glyphicon-user"></i></a>
|
<td><a href="{% url "users:profil" club.id%}" class="btn btn-primary btn-sm" role="button"><i class="glyphicon glyphicon-user"></i></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% acl_end %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -37,10 +37,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
Créer un adhérent
|
Créer un adhérent
|
||||||
</a>
|
</a>
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
|
{% can_view_all Club %}
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "users:index-clubs" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "users:index-clubs" %}">
|
||||||
<i class="glyphicon glyphicon-list"></i>
|
<i class="glyphicon glyphicon-list"></i>
|
||||||
Clubs et assos
|
Clubs et assos
|
||||||
</a>
|
</a>
|
||||||
|
{% acl_end %}
|
||||||
{% can_view_all Adherent %}
|
{% can_view_all Adherent %}
|
||||||
<a class="list-group-item list-group-item-info" href="{% url "users:index" %}">
|
<a class="list-group-item list-group-item-info" href="{% url "users:index" %}">
|
||||||
<i class="glyphicon glyphicon-list"></i>
|
<i class="glyphicon glyphicon-list"></i>
|
||||||
|
|
Loading…
Reference in a new issue