blob: 0890295f6d97101704e46193b9759ba18468a782 (
plain)
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 'syspanel/base.html' %}
{%load i18n%}
{% block sidebar %}
{% with current_sidebar="users" %}
{{block.super}}
{% endwith %}
{% endblock %}
{% block page_header %}
{% url horizon:syspanel:users:index as refresh_link %}
{# to make searchable false, just remove it from the include statement #}
{% include "horizon/common/_page_header.html" with title=_("Users") refresh_link=refresh_link searchable="true" %}
{% endblock page_header %}
{% block syspanel_main %}
<table class="wide">
<tr>
<th>{% trans "ID"%}</th>
<th>{% trans "Name"%}</th>
<th>{% trans "Email"%}</th>
<th>{% trans "Default Tenant"%}</th>
<th>{% trans "Options"%}</th>
</tr>
{% for user in users %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{{user.id}}{% if not user.enabled %} (disabled){% endif %}</td>
<td>{{user.name}}</td>
<td>{{user.email}}</td>
<td>{{user.tenantId}}</td>
<td id="actions">
<ul>
<li class="form">{% include "syspanel/users/_enable_disable.html" with form=user_enable_disable_form %}</li>
<li class="form">{% include "syspanel/users/_delete.html" with form=user_delete_form %}</li>
<li><a href="{% url horizon:syspanel:users:update user.id %}">{% trans "Edit"%}</a></li>
</ul>
</td>
</tr>
{% endfor %}
</table>
<a id="user_create_link" class="action_link large-rounded" href="{% url horizon:syspanel:users:create %}">{% trans "Create New User"%}</a>
</div>
{% endblock %}
|