8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +00:00

N'affiche le menu clubs et assos que si besoin

This commit is contained in:
Gabriel Detraz 2018-01-04 15:10:01 +01:00 committed by root
parent ecf61afdd2
commit 7cfe6180a3
2 changed files with 7 additions and 1 deletions

View file

@ -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>

View file

@ -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>