forked from jfrostburke/snex2
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpending_users.html
More file actions
29 lines (29 loc) · 899 Bytes
/
pending_users.html
File metadata and controls
29 lines (29 loc) · 899 Bytes
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
{% if request.user.is_superuser %}
<h4>Pending Users</h4>
<div class="row">
<div class="col-md-12">
<table class="table table-striped">
<thead>
<tr>
<th>Username</th>
<th>Name</th>
<th>Email</th>
<th>Approve</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.username }}</td>
<td>{{ user.first_name }} {{ user.last_name }}</td>
<td>{{ user.email }}</td>
<td><a href="{% url 'snex2-approve-user' user.id %}" class="btn btn-primary">Approve</a></td>
<td><a href="{% url 'user-delete' user.id %}" class="btn btn-danger">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}