aff_users.html 1.01 KB
Newer Older
root's avatar
root committed
1 2 3 4 5 6
    <table class="table table-striped">
        <thead>
            <tr>
                <th>Prénom</th>
                <th>Nom</th>
                <th>Pseudo</th>
7
                <th>Fin de cotisation le</th>
8
                <th>Connexion</th>
root's avatar
root committed
9 10 11
                <th>Profil</th>
            </tr>
        </thead>
12
        {% for user in users_list %}    
root's avatar
root committed
13
        <tr>
14 15 16 17 18
            <td>{{ user.name }}</td>
            <td>{{ user.surname }}</td>
            <td>{{ user.pseudo }}</td>
            <td>{% if user.is_adherent %}{{ user.end_adhesion }}{% else %}Non adhérent{% endif %}</td>
            <td>{% if user.has_access == True %}
19
                <font color="green">Active</font>
20
                {% else %}
21
                <font color="red">Désactivée</font>
22 23
                {% endif %}
            </td>
24
            <td><a href="{% url "users:profil" user.id%}" class="btn btn-primary btn-sm" role="button"><i class="glyphicon glyphicon-user"></i></a>
25
            </td>
root's avatar
root committed
26 27 28 29
        </tr>
        {% endfor %}
    </table>