-
Notifications
You must be signed in to change notification settings - Fork 2k
/
members.html
38 lines (35 loc) · 1.55 KB
/
members.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "group/edit_base.html" %}
{% block subtitle %}{{ _('Members') }} - {{ c.group_dict.display_name }} - {{ _('Groups') }}{% endblock %}
{% block page_primary_action %}
{% link_for _('Add Member'), controller='group', action='member_new', id=c.group_dict.id, class_='btn btn-primary', icon='plus-square' %}
{% endblock %}
{% block primary_content_inner %}
<h3 class="page-heading">{{ _('{0} members'.format(c.members|length)) }}</h3>
<table class="table table-header table-hover table-bordered" id="member-table">
<thead>
<tr>
<th>{{ _('User') }}</th>
<th>{{ _('Role') }}</th>
<th></th>
</tr>
</thead>
<tbody>
{% for user_id, user, role in c.members %}
<tr>
<td class="media">
{{ h.linked_user(user_id, maxlength=20) }}
</td>
<td>{{ role }}</td>
<td>
<div class="btn-group pull-right">
<a class="btn btn-small" href="{% url_for controller='group', action='member_new', id=c.group_dict.id, user=user_id %}" title="{{ _('Edit') }}">
<i class="fa fa-wrench"></i>
</a>
<a class="btn btn-danger btn-small" href="{% url_for controller='group', action='member_delete', id=c.group_dict.id, user=user_id %}" data-module="confirm-action" data-module-content="{{ _('Are you sure you want to delete this member?') }}" title="{{ _('Delete') }}">{% block delete_button_text %}<i class="fa fa-times"></i>{% endblock %}</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}