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 | <h3 i18n:translate="">Applicants</h3> |
---|
37 | <table class="display dataTableManage"> |
---|
38 | <thead> |
---|
39 | <tr> |
---|
40 | <th> |
---|
41 | </th> |
---|
42 | <th i18n:translate="">Application Number |
---|
43 | </th> |
---|
44 | <th i18n:translate="">Full Name |
---|
45 | </th> |
---|
46 | <th i18n:translate="">First Choice |
---|
47 | </th> |
---|
48 | <th i18n:translate="">Application State |
---|
49 | </th> |
---|
50 | </tr> |
---|
51 | </thead> |
---|
52 | <tbody> |
---|
53 | <tr class="gradeC" tal:repeat="appl context/values"> |
---|
54 | <td> |
---|
55 | <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" /> |
---|
56 | </td> |
---|
57 | <td> |
---|
58 | <a tal:attributes="href python: view.url(appl)" |
---|
59 | tal:content="appl/__name__">NUMBER</a> |
---|
60 | </td> |
---|
61 | <td> |
---|
62 | <span tal:replace="appl/display_fullname">FULLNAME |
---|
63 | </span> |
---|
64 | </td> |
---|
65 | <td> |
---|
66 | <span tal:replace="appl/course1/code|nothing">FIRSTCHOICE |
---|
67 | </span> |
---|
68 | </td> |
---|
69 | <td> |
---|
70 | <span tal:replace="appl/translated_state">STATE |
---|
71 | </span> |
---|
72 | </td> |
---|
73 | </tr> |
---|
74 | </tbody> |
---|
75 | </table> |
---|
76 | <div tal:condition="view/availableActions"> |
---|
77 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
78 | <input tal:condition="python:action.label in view.tabtwoactions" |
---|
79 | tal:replace="structure action/render"/> |
---|
80 | </span> |
---|
81 | </div> |
---|
82 | </div> |
---|
83 | <div id="tab-3" tal:attributes="class view/tab3"> <br /> |
---|
84 | <table class="display dataTableManage"> |
---|
85 | <thead> |
---|
86 | <tr> |
---|
87 | <th> |
---|
88 | </th> |
---|
89 | <th i18n:translate="">User Id |
---|
90 | </th> |
---|
91 | <th i18n:translate="">Name |
---|
92 | </th> |
---|
93 | <th i18n:translate="">Local Role |
---|
94 | </th> |
---|
95 | </tr> |
---|
96 | </thead> |
---|
97 | <tbody> |
---|
98 | <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> |
---|
99 | <input type="checkbox" name="role_id" |
---|
100 | tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> |
---|
101 | <td tal:content="entry/user_name"> USERNAME </td> |
---|
102 | <td tal:content="entry/user_title"> USERTITLE </td> |
---|
103 | <td tal:content="entry/local_role_title"> LOCAL ROLE </td> |
---|
104 | </tr> |
---|
105 | </tbody> |
---|
106 | </table> |
---|
107 | <div tal:condition="view/availableActions"> |
---|
108 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
109 | <input tal:condition="python:action.label in view.tabthreeactions1" |
---|
110 | tal:replace="structure action/render"/> |
---|
111 | </span> |
---|
112 | </div> <br /><br /> |
---|
113 | <table class="form-table"> |
---|
114 | <tr> <td> |
---|
115 | <select id="user" name="user"> |
---|
116 | <option tal:repeat="user view/getUsers" |
---|
117 | tal:attributes="value user/name"> |
---|
118 | <span tal:replace="user/val/title">USERTITLE |
---|
119 | </span> |
---|
120 | </option> |
---|
121 | </select> </td> <td> |
---|
122 | <select id="local_role" name="local_role"> |
---|
123 | <option tal:repeat="localrole view/getLocalRoles" |
---|
124 | tal:attributes="value localrole/name"> |
---|
125 | <span tal:replace="localrole/title">LOCALROLETITLE |
---|
126 | </span> |
---|
127 | </option> |
---|
128 | </select> </td> <td> |
---|
129 | <div tal:condition="view/availableActions"> |
---|
130 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
131 | <input tal:condition="python:action.label in view.tabthreeactions2" |
---|
132 | tal:replace="structure action/render"/> |
---|
133 | </span> |
---|
134 | </div> </td> |
---|
135 | </tr> |
---|
136 | </table> |
---|
137 | </div> |
---|
138 | </div> |
---|
139 | </form> |
---|