Print groups in user list
[cavote.git] / templates / admin_users.html
index 8ec9eb3..c1934a7 100644 (file)
     </tr>
     </thead>
     <tbody>
-    {% for user in users %}
+    {% for user in users.values() %}
     <tr>
       <td>{{ user.email }}</td>
       <td>{{ user.username }}</td>
-      <td>{{ user.rolename }}</td>
+      <td>{% for role in user.roles %}<span class="label">{{ role }}</span> {% endfor %}</td>
       <td>{% if user.is_admin %}<span class="label label-success">Oui</span>{% else %}<span class="label">Non</span>{% endif %}</td>
       <td>
         <a href="" class="btn btn-mini">Éditer</a>