blob: 5f7da9c2e9844eea31394538e5eb687fa5aa1a9c (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{% extends 'django_openstack/syspanel/base.html' %}
{%load i18n%}
{% block sidebar %}
{% with current_sidebar="tenants" %}
{{block.super}}
{% endwith %}
{% endblock %}
{% block page_header %}
<div id='page_header'>
<h2>{% trans "Users for Tenant"%}: <span>{{tenant_id}}</span></h2>
</div>
{% endblock %}
{% block syspanel_main %}
<div id="usage">
{% if users %}
<table class="wide">
<tr id='headings'>
<th>{% trans "ID"%}</th>
<th>{% trans "Name"%}</th>
<th>{% trans "Email"%}</th>
<th>{% trans "Actions"%}</th>
</tr>
<tbody class='main'>
{% for user in users %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{{user.id}}</td>
<td>{{user.name}}</td>
<td>{{user.email}}</td>
<td id="actions">
<ul>
<li class="form">{% include "django_openstack/syspanel/tenants/_remove_user.html" with form=remove_user_form %}</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="message_box info">
<h2>{% trans "Info"%}</h2>
<p>T{% trans "here are currently no users for this tenant"%}</p>
</div>
{% endif %}
{% if new_users %}
<h3>{% trans "Add new users"%}</h3>
<table class="wide">
<tr id='headings'>
<th>{% trans "ID"%}</th>
<th>{% trans "Name"%}</th>
<th>{% trans "Actions"%}</th>
</tr>
<tbody class='main'>
{% for user in new_users %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{{user.id}}</td>
<td>{{user.name}}</td>
<td id="actions">
<ul>
<li class="form">{% include "django_openstack/syspanel/tenants/_add_user.html" with form=add_user_form %}</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}
|