Browse Source

N'affiche le menu clubs et assos que si besoin

test-front-curly
Gabriel Detraz 8 years ago
committed by root
parent
commit
7cfe6180a3
  1. 6
      users/templates/users/aff_clubs.html
  2. 2
      users/templates/users/sidebar.html

6
users/templates/users/aff_clubs.html

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

2
users/templates/users/sidebar.html

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

Loading…
Cancel
Save