diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/group.html | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/templates/group.html b/templates/group.html index c6a83d1..16f62ed 100644 --- a/templates/group.html +++ b/templates/group.html @@ -24,13 +24,36 @@ </div> <ul class="list-group"> - {% for member in members %} + {% for member in members|selectattr("active") %} <li class="list-group-item">{{member.user}}{% if member.admin %} (is admin){% endif %}</li> {% endfor %} </ul> </div> {% if admin %} + {% for member in members|rejectattr("active") %} + {% if loop.first %} + <div class="panel panel-default"> + <div class="panel-heading"> + <h3 class="panel-title">Pending members</h3> + </div> + + <table class="table table-hover"> + <tr> + <th class="col-sm-3">username</th> + <th class="col-sm-9 text-center">mail</th> + </tr> + {% endif %} + <tr> + <td>{{member.user.username}}</td> + <td class="text-center">{{member.user.email}}</td> + </tr> + {% if loop.last %} + </table> + </div> + {% endif %} + {% endfor %} + <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"> |