Commit 7cfe6180 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

N'affiche le menu clubs et assos que si besoin

parent ecf61afd
......@@ -26,6 +26,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% include "pagination.html" with list=clubs_list %}
{% endif %}
{% load acl %}
<table class="table table-striped">
<thead>
<tr>
......@@ -38,7 +40,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</tr>
</thead>
{% for club in clubs_list %}
<tr>
{% can_view club %}
<tr>
<td>{{ club.surname }}</td>
<td>{{ club.pseudo }}</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>
</tr>
{% acl_end %}
{% endfor %}
</table>
......
......@@ -37,10 +37,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Créer un adhérent
</a>
{% acl_end %}
{% can_view_all Club %}
<a class="list-group-item list-group-item-info" href="{% url "users:index-clubs" %}">
<i class="glyphicon glyphicon-list"></i>
Clubs et assos
</a>
{% acl_end %}
{% can_view_all Adherent %}
<a class="list-group-item list-group-item-info" href="{% url "users:index" %}">
<i class="glyphicon glyphicon-list"></i>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment