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="">Introduction |
---|
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 | |
---|
28 | <div tal:condition="view/availableActions"> |
---|
29 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
30 | <input tal:condition="python:action.label in view.taboneactions" |
---|
31 | tal:replace="structure action/render"/> |
---|
32 | </span> |
---|
33 | </div> |
---|
34 | </div> |
---|
35 | <div id="tab-2" tal:attributes="class view/tab2"> |
---|
36 | <h3 tal:content="view/subunits">SUBUNITS</h3> |
---|
37 | |
---|
38 | <p i18n:translate="note_armp"> |
---|
39 | Please note that containers will be opened in manage mode here. |
---|
40 | All application record links will be loaded into your browser which |
---|
41 | can take a considerable time depending on your bandwidth. |
---|
42 | Please be patient until all records have been loaded. |
---|
43 | </p> |
---|
44 | |
---|
45 | <table class="display dataTableManage"> |
---|
46 | <thead> |
---|
47 | <tr> |
---|
48 | <th> |
---|
49 | </th> |
---|
50 | <th i18n:translate="">Year |
---|
51 | </th> |
---|
52 | <th i18n:translate="">Code |
---|
53 | </th> |
---|
54 | <th i18n:translate="">Title |
---|
55 | </th> |
---|
56 | </tr> |
---|
57 | </thead> |
---|
58 | <tbody> |
---|
59 | <tr tal:repeat="entry context/values" class="gradeC"> <td> |
---|
60 | <input type="checkbox" name="val_id" |
---|
61 | tal:attributes="value entry/__name__" /> </td> |
---|
62 | <td tal:content="entry/year">YEAR</td> <td> |
---|
63 | <a href="" |
---|
64 | tal:attributes="href python:view.url(entry) + '/manage'" |
---|
65 | tal:content="entry/__name__">CODE</a> </td> |
---|
66 | <td tal:content="entry/title">TITLE</td> |
---|
67 | </tr> |
---|
68 | </tbody> |
---|
69 | </table> |
---|
70 | <div tal:condition="view/availableActions"> |
---|
71 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
72 | <input tal:condition="python:action.label in view.tabtwoactions" |
---|
73 | tal:replace="structure action/render"/> |
---|
74 | </span> |
---|
75 | </div> |
---|
76 | </div> |
---|
77 | <div id="tab-3" tal:attributes="class view/tab3"> |
---|
78 | <br /> |
---|
79 | <table class="display dataTableManage"> |
---|
80 | <thead> |
---|
81 | <tr> |
---|
82 | <th> |
---|
83 | </th> |
---|
84 | <th i18n:translate="">User Id |
---|
85 | </th> |
---|
86 | <th i18n:translate="">Name |
---|
87 | </th> |
---|
88 | <th i18n:translate="">Local Role |
---|
89 | </th> |
---|
90 | </tr> |
---|
91 | </thead> |
---|
92 | <tbody> |
---|
93 | <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> |
---|
94 | <td> <input type="checkbox" name="role_id" |
---|
95 | tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> |
---|
96 | <td tal:content="entry/user_name">USERNAME</td> |
---|
97 | <td tal:content="entry/user_title">USERTITLE</td> |
---|
98 | <td tal:content="entry/local_role_title">LOCAL ROLE</td> |
---|
99 | </tr> |
---|
100 | </tbody> |
---|
101 | </table> |
---|
102 | <div tal:condition="view/availableActions"> |
---|
103 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
104 | <input tal:condition="python:action.label in view.tabthreeactions1" |
---|
105 | tal:replace="structure action/render"/> |
---|
106 | </span> |
---|
107 | </div> <br /><br /> |
---|
108 | <table class="form-table"> |
---|
109 | <tr> <td> |
---|
110 | <select id="user" name="user"> |
---|
111 | <option tal:repeat="user view/getUsers" |
---|
112 | tal:attributes="value user/name"> |
---|
113 | <span tal:replace="user/val/title">USERTITLE |
---|
114 | </span> |
---|
115 | </option> |
---|
116 | </select> </td> <td> |
---|
117 | <select id="local_role" name="local_role"> |
---|
118 | <option tal:repeat="localrole view/getLocalRoles" |
---|
119 | tal:attributes="value localrole/name"> |
---|
120 | <span tal:replace="localrole/title">LOCALROLETITLE |
---|
121 | </span> |
---|
122 | </option> |
---|
123 | </select> </td> <td> |
---|
124 | <div tal:condition="view/availableActions"> |
---|
125 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
126 | <input tal:condition="python:action.label in view.tabthreeactions2" |
---|
127 | tal:replace="structure action/render"/> |
---|
128 | </span> |
---|
129 | </div> </td> |
---|
130 | </tr> |
---|
131 | </table> |
---|
132 | </div> |
---|
133 | </div> |
---|
134 | </form> |
---|