1 | <form action="." tal:attributes="action request/URL" method="POST" |
---|
2 | i18n:domain="waeup.kofa" class="edit-form" enctype="multipart/form-data"> |
---|
3 | |
---|
4 | <ul class="tabs" data-tabs="tabs"> |
---|
5 | <li tal:attributes="class view/tab1"> |
---|
6 | <a href="#tab-1"> |
---|
7 | <span i18n:translate="">Settings |
---|
8 | </span></a> |
---|
9 | </li> |
---|
10 | <li tal:attributes="class view/tab2"> |
---|
11 | <a href="#tab-2"> |
---|
12 | <span i18n:translate="">Applicants |
---|
13 | </span></a> |
---|
14 | </li> |
---|
15 | <li tal:attributes="class view/tab3"> |
---|
16 | <a href="#tab-3"> |
---|
17 | <span i18n:translate="">Local Roles |
---|
18 | </span></a> |
---|
19 | </li> |
---|
20 | </ul> |
---|
21 | <div class="tab-content"> |
---|
22 | <div id="tab-1" tal:attributes="class view/tab1"> |
---|
23 | <table class="form-table"> |
---|
24 | <tbody> |
---|
25 | <tal:widgets content="structure provider:widgets" /> |
---|
26 | </tbody> |
---|
27 | </table> |
---|
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 | |
---|
37 | <input type="checkbox" onClick="toggle(this, 'val_id')" /> |
---|
38 | <span i18n:translate="">Select all</span> |
---|
39 | <br /><br /> |
---|
40 | |
---|
41 | <table class="display dataTableManage"> |
---|
42 | <thead> |
---|
43 | <tr> |
---|
44 | <th> |
---|
45 | </th> |
---|
46 | <th i18n:translate="">Application Number |
---|
47 | </th> |
---|
48 | <th i18n:translate="">Full Name |
---|
49 | </th> |
---|
50 | <th i18n:translate="">First Choice |
---|
51 | </th> |
---|
52 | <th i18n:translate="">Application State |
---|
53 | </th> |
---|
54 | </tr> |
---|
55 | </thead> |
---|
56 | <tbody> |
---|
57 | <tr class="gradeC" tal:repeat="appl context/values"> |
---|
58 | <td> |
---|
59 | <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" /> |
---|
60 | </td> |
---|
61 | <td> |
---|
62 | <a tal:attributes="href python: view.url(appl)" |
---|
63 | tal:content="appl/__name__">NUMBER</a> |
---|
64 | </td> |
---|
65 | <td> |
---|
66 | <span tal:replace="appl/display_fullname">FULLNAME |
---|
67 | </span> |
---|
68 | </td> |
---|
69 | <td> |
---|
70 | <span tal:replace="appl/course1/code|nothing">FIRSTCHOICE |
---|
71 | </span> |
---|
72 | </td> |
---|
73 | <td> |
---|
74 | <span tal:replace="appl/translated_state">STATE |
---|
75 | </span> |
---|
76 | </td> |
---|
77 | </tr> |
---|
78 | </tbody> |
---|
79 | </table> |
---|
80 | <div tal:condition="view/availableActions"> |
---|
81 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
82 | <input tal:condition="python:action.label in view.tabtwoactions" |
---|
83 | tal:replace="structure action/render"/> |
---|
84 | </span> |
---|
85 | </div> |
---|
86 | </div> |
---|
87 | <div id="tab-3" tal:attributes="class view/tab3"> <br /> |
---|
88 | <table class="display dataTableManage"> |
---|
89 | <thead> |
---|
90 | <tr> |
---|
91 | <th> |
---|
92 | </th> |
---|
93 | <th i18n:translate="">User Id |
---|
94 | </th> |
---|
95 | <th i18n:translate="">Name |
---|
96 | </th> |
---|
97 | <th i18n:translate="">Local Role |
---|
98 | </th> |
---|
99 | </tr> |
---|
100 | </thead> |
---|
101 | <tbody> |
---|
102 | <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> |
---|
103 | <input type="checkbox" name="role_id" |
---|
104 | tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> |
---|
105 | <td tal:content="entry/user_name"> USERNAME </td> |
---|
106 | <td tal:content="entry/user_title"> USERTITLE </td> |
---|
107 | <td tal:content="entry/local_role_title"> LOCAL ROLE </td> |
---|
108 | </tr> |
---|
109 | </tbody> |
---|
110 | </table> |
---|
111 | <div tal:condition="view/availableActions"> |
---|
112 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
113 | <input tal:condition="python:action.label in view.tabthreeactions1" |
---|
114 | tal:replace="structure action/render"/> |
---|
115 | </span> |
---|
116 | </div> <br /><br /> |
---|
117 | <table class="form-table"> |
---|
118 | <tr> <td> |
---|
119 | <select id="user" name="user"> |
---|
120 | <option tal:repeat="user view/getUsers" |
---|
121 | tal:attributes="value user/name"> |
---|
122 | <span tal:replace="user/val/title">USERTITLE |
---|
123 | </span> |
---|
124 | </option> |
---|
125 | </select> </td> <td> |
---|
126 | <select id="local_role" name="local_role"> |
---|
127 | <option tal:repeat="localrole view/getLocalRoles" |
---|
128 | tal:attributes="value localrole/name"> |
---|
129 | <span tal:replace="localrole/title">LOCALROLETITLE |
---|
130 | </span> |
---|
131 | </option> |
---|
132 | </select> </td> <td> |
---|
133 | <div tal:condition="view/availableActions"> |
---|
134 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
135 | <input tal:condition="python:action.label in view.tabthreeactions2" |
---|
136 | tal:replace="structure action/render"/> |
---|
137 | </span> |
---|
138 | </div> </td> |
---|
139 | </tr> |
---|
140 | </table> |
---|
141 | </div> |
---|
142 | </div> |
---|
143 | </form> |
---|