1 | <form action="." tal:attributes="action request/URL" |
---|
2 | i18n:domain="waeup.kofa" method="POST" enctype="multipart/form-data"> |
---|
3 | <ul class="tabs" data-tabs="tabs"> |
---|
4 | <li tal:attributes="class view/tab1"> |
---|
5 | <a href="#tab-1"> |
---|
6 | <span i18n:translate="">Settings |
---|
7 | </span></a> |
---|
8 | </li> |
---|
9 | <li tal:attributes="class view/tab2"> |
---|
10 | <a href="#tab-2"> |
---|
11 | <span tal:content="view/subunits">CONTENTS |
---|
12 | </span> </a> |
---|
13 | </li> |
---|
14 | <li tal:attributes="class view/tab3"> |
---|
15 | <a href="#tab-3"> |
---|
16 | <span i18n:translate="">Local Roles |
---|
17 | </span></a> |
---|
18 | </li> |
---|
19 | </ul> |
---|
20 | <div class="tab-content"> |
---|
21 | <div id="tab-1" tal:attributes="class view/tab1"> |
---|
22 | <table class="form-table"> |
---|
23 | <tbody> |
---|
24 | <tal:widgets content="structure provider:widgets" /> |
---|
25 | </tbody> |
---|
26 | </table> |
---|
27 | <div tal:condition="view/availableActions"> |
---|
28 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
29 | <input tal:condition="python:action.label in view.taboneactions" |
---|
30 | tal:replace="structure action/render"/> |
---|
31 | </span> |
---|
32 | </div> |
---|
33 | </div> |
---|
34 | <div id="tab-2" tal:attributes="class view/tab2"> |
---|
35 | <h3 tal:content="view/subunits">DEPARTMENTS</h3> |
---|
36 | <table> |
---|
37 | <thead> |
---|
38 | <tr> |
---|
39 | <th> |
---|
40 | </th> |
---|
41 | <th i18n:translate="">Code |
---|
42 | </th> |
---|
43 | <th i18n:translate="">Title |
---|
44 | </th> |
---|
45 | </tr> |
---|
46 | </thead> |
---|
47 | <tbody> |
---|
48 | <tr tal:repeat="dep context/values"> <td> |
---|
49 | <input type="checkbox" name="val_id" |
---|
50 | tal:attributes="value dep/code" /> </td> <td> |
---|
51 | <a tal:attributes="href python: view.url(dep)" |
---|
52 | tal:content="dep/__name__"> ID</a> </td> <td> |
---|
53 | <span tal:content="dep/title">ID |
---|
54 | </span> </td> |
---|
55 | </tr> |
---|
56 | </tbody> |
---|
57 | </table> |
---|
58 | <div tal:condition="view/availableActions"> |
---|
59 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
60 | <input tal:condition="python:action.label in view.tabtwoactions" |
---|
61 | tal:replace="structure action/render"/> |
---|
62 | </span> |
---|
63 | </div> |
---|
64 | </div> |
---|
65 | <div id="tab-3" tal:attributes="class view/tab3"> <br /> |
---|
66 | <table class="display dataTableManage"> |
---|
67 | <thead> |
---|
68 | <tr> |
---|
69 | <th> |
---|
70 | </th> |
---|
71 | <th i18n:translate="">User Id |
---|
72 | </th> |
---|
73 | <th i18n:translate="">Name |
---|
74 | </th> |
---|
75 | <th i18n:translate="">Local Role |
---|
76 | </th> |
---|
77 | </tr> |
---|
78 | </thead> |
---|
79 | <tbody> |
---|
80 | <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> |
---|
81 | <input type="checkbox" name="role_id" |
---|
82 | tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> |
---|
83 | <td tal:content="entry/user_name"> USERNAME </td> |
---|
84 | <td tal:content="entry/user_title"> USERTITLE </td> |
---|
85 | <td tal:content="entry/local_role_title"> LOCAL ROLE </td> |
---|
86 | </tr> |
---|
87 | </tbody> |
---|
88 | </table> |
---|
89 | <div tal:condition="view/availableActions"> |
---|
90 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
91 | <input tal:condition="python:action.label in view.tabthreeactions1" |
---|
92 | tal:replace="structure action/render"/> |
---|
93 | </span> |
---|
94 | </div><br /><br /> |
---|
95 | <table class="form-table"> |
---|
96 | <tr> <td> |
---|
97 | <select id="user" name="user"> |
---|
98 | <option tal:repeat="user view/getUsers" tal:attributes="value user/name"> |
---|
99 | <span tal:replace="user/val/title">USERTITLE |
---|
100 | </span> |
---|
101 | </option> |
---|
102 | </select> </td> <td> |
---|
103 | <select id="local_role" name="local_role"> |
---|
104 | <option tal:repeat="localrole view/getLocalRoles" |
---|
105 | tal:attributes="value localrole/name"> |
---|
106 | <span tal:replace="localrole/title">LOCALROLETITLE |
---|
107 | </span> |
---|
108 | </option> |
---|
109 | </select> </td> <td> |
---|
110 | <div tal:condition="view/availableActions"> |
---|
111 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
112 | <input tal:condition="python:action.label in view.tabthreeactions2" |
---|
113 | tal:replace="structure action/render"/> |
---|
114 | </span> |
---|
115 | </div> </td> |
---|
116 | </tr> |
---|
117 | </table> |
---|
118 | </div> |
---|
119 | </div> |
---|
120 | </form> |
---|