users.index.html
1.07 KB
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
39
40
41
42
43
44
45
{% extends "starter-template.html" %}
{% block content %}
<table class="table table-striped table-hover">
<tr>
<th>Email</th>
<th>Suppliers</th>
<th>Roles</th>
<th> </th>
</tr>
{% for user in users %}
<tr>
<td class="user-email">
<a href="/users/view/{{ user._id }}">
{{ user.email }}
</a>
</td>
<td class="user-suppliers">
{% for supplier in user.suppliers %}
<span class="label label-default">{{ supplier }}</span>
{% endfor %}
</td>
<td class="user-roles">
{% for role in user.roles %}
<span class="label label-default">{{ role }}</span>
{% endfor %}
</td>
<td class="user-action">
<a href="/users/change-password/{{ user._id }}" class="btn btn-primary" role="button">
Change Password
</a>
</td>
</tr>
{% endfor %}
</table>
<a href="/users/add" class="btn btn-primary" role="button">Add</a>
{% endblock %}