-
Notifications
You must be signed in to change notification settings - Fork 2k
/
authz.html
49 lines (38 loc) · 1.53 KB
/
authz.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
<html xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<py:def function="page_title">Authorization: ${c.group.display_name}</py:def>
<py:def function="page_heading">Authorization: ${c.group.display_name}</py:def>
<div py:match="content">
<h3>Update Existing Roles</h3>
<form id="theform" method="POST">
${authz_form_table('theform', c.roles, c.users, c.user_role_dict)}
<button type="submit" name="save" class="btn btn-primary">
Save Changes
</button>
<div class="clear"></div>
</form>
<h3>Add Roles for Any User</h3>
<form id="addform" method="POST">
${authz_add_table(c.roles)}
<button type="submit" name="add" class="btn btn-primary">Add Role</button>
<div class="clear"></div>
</form>
<hr/>
<py:if test="c.are_any_authz_groups">
<h3>Update Existing Roles for Authorization Groups</h3>
<form id="authzgroup_form" method="POST">
${authz_form_group_table('authzgroup_form', c.roles, c.authz_groups, c.authz_groups_role_dict)}
<button type="submit" name="authz_save" class="btn btn-primary">Save Changes</button>
<div class="clear"></div>
</form>
<h3>Add Roles for Any Authorization Group</h3>
<form id="authzgroup_addform" method="POST">
${authz_add_group_table(c.roles)}
<button type="submit" name="authz_add" class="btn btn-primary">Add Role</button>
<div class="clear"></div>
</form>
</py:if>
</div>
<xi:include href="layout.html" />
</html>