| 1 | {% extends "accounts/base.html" %} |
| 2 | {% load static %} |
| 3 | |
| 4 | {% block content %} |
| 5 | <div class="group-dirctory"> |
| 6 | <h1>{{ group.name }}</h1> |
| 7 | {% if is_admin %} |
| 8 | <form> |
| 9 | <div class="input-prepend input-append"> |
| 10 | <span class="add-on"><i class="icon-envelope"></i></span> |
| 11 | <input type="text" class="input-xlarge" type="email" required placeholder="Email"> |
| 12 | <div class="btn-group"> |
| 13 | <button class="btn" tabindex="-1">Ajouter</button> |
| 14 | <button class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1"> |
| 15 | <span class="caret"></span> |
| 16 | </button> |
| 17 | <ul class="dropdown-menu"> |
| 18 | <li><a href="#">Action</a></li> |
| 19 | <li><a href="#">Another action</a></li> |
| 20 | <li><a href="#">Something else here</a></li> |
| 21 | <li class="divider"></li> |
| 22 | <li><a href="#">Separated link</a></li> |
| 23 | </ul> |
| 24 | </div> |
| 25 | </div> |
| 26 | </form> |
| 27 | {% endif %} |
| 28 | <table class="table table-striped" id="directory"> |
| 29 | <thead> |
| 30 | <tr> |
| 31 | <th>Nom</th> |
| 32 | <th>Promo</th> |
| 33 | <th>Contact</th> |
| 34 | <th filter="false"></th> |
| 35 | </tr> |
| 36 | </thead> |
| 37 | <tbody> |
| 38 | {% for memb in memberships %} |
| 39 | <tr> |
| 40 | <td> |
| 41 | <span {% if memb.is_admin %}class="admin"{% endif %}> |
| 42 | {{ memb.xuser }} |
| 43 | </span> |
| 44 | </td> |
| 45 | <td>PROMO</td> |
| 46 | <td> |
| 47 | <a href="mailto:{{ memb.email }}"> |
| 48 | <i class="icon-envelope"></i> |
| 49 | </a> |
| 50 | {% if is_admin %} |
| 51 | <i class="icon-pencil"></i> |
| 52 | <a href="{% url 'accounts:membership-delete' group.short memb.xuser.username %}"> |
| 53 | <i class="icon-trash"></i> |
| 54 | </a> |
| 55 | {% endif %} |
| 56 | </td> |
| 57 | </tr> |
| 58 | {% endfor %} |
| 59 | </tbody> |
| 60 | </table> |
| 61 | </div> |
| 62 | {% endblock %} |