La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2KB

  1. {% extends "base/container.html" %}
  2. {% block content %}
  3. <section>
  4. <form action='' method='POST'>
  5. {{ form.hidden_tag() }}
  6. {{ form.submit }}
  7. </form>
  8. <h2>List of members</h2>
  9. <table style="width:70%; margin: auto;">
  10. <tr><th>Name</th><th>Email</th><th>Register</th><th>XP</th><th>Inn.</th>
  11. <th>Newsletter</th></tr>
  12. {% for user in users %}
  13. <tr><td><a href="{{ url_for('user_by_id', user_id=user.id) }}" >{{ user.name }}</a></td>
  14. <td>{{ user.email }}</td>
  15. <td>{{ user.register_date }}</td><td>{{ user.xp }}</td>
  16. <td>{{ user.innovation }}</td>
  17. <td>{{ "Yes" if user.newsletter else "No" }}</td></tr>
  18. {% endfor %}
  19. </table>
  20. <h2>List of groups</h2>
  21. <table style="width:70%; margin: auto;">
  22. <tr><th>Group</th><th>Members</th><th>Privileges</th></tr>
  23. {% for group in groups %}
  24. <tr><td><span style="{{ group.css }}">{{ group.name }}</span></td><td>
  25. {% for user in group.members %}
  26. {{ user.name }}
  27. {% endfor %}
  28. </td><td>
  29. {% for priv in group.privs %}
  30. <code>{{ priv }}</code>
  31. {% endfor %}
  32. </td></tr>
  33. {% endfor %}
  34. </table>
  35. </section>
  36. {% endblock %}