-
Notifications
You must be signed in to change notification settings - Fork 14
/
view_admin_users.html
53 lines (47 loc) · 1.48 KB
/
view_admin_users.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% import "toolkit/summary-table.html" as summary %}
{% extends "_base_page.html" %}
{% block pageTitle %}
Manage admin users - Digital Marketplace admin
{% endblock %}
{% block breadcrumbs %}
{{ govukBreadcrumbs({
"items": [
{
"text": "Admin home",
"href": url_for('.index')
},
{
"text": "Manage admin users"
}
]
}) }}
{% endblock %}
{% block mainContent %}
<h1 class="govuk-heading-xl">Manage users</h1>
<div class="page-section">
{% set role_descriptors = {
"admin": "Support accounts",
"admin-ccs-category": "Manage services",
"admin-ccs-sourcing": "Audit framework",
"admin-framework-manager": "Manage framework",
"admin-ccs-data-controller": "Manage data",
}
%}
{{ summary.top_link("Invite user", url_for(".invite_admin_user")) }}
{% call(item) summary.list_table(
admin_users,
caption="Admin users",
empty_message="No suppliers were found",
field_headings=["Name", "Email", "Permissions", "Status", summary.hidden_field_heading("Action")],
field_headings_visible=True)
%}
{% call summary.row() %}
{{ summary.field_name(item.name) }}
{{ summary.text(item.emailAddress) }}
{{ summary.text(role_descriptors[item.role]) }}
{{ summary.text("Active" if item.active else "Suspended") }}
{{ summary.edit_link("Edit", url_for(".edit_admin_user", admin_user_id=item.id), hidden_text=item.name) }}
{% endcall %}
{% endcall %}
</div>
{% endblock %}