1 | <form action="." tal:attributes="action request/URL" method="POST" |
---|
2 | i18n:domain="waeup.kofa" enctype="multipart/form-data"> |
---|
3 | |
---|
4 | <ul class="tabs nav nav-tabs" data-tabs="tabs"> |
---|
5 | <li class="active"> |
---|
6 | <a href="#tab1" data-toggle="tab"> |
---|
7 | <span i18n:translate="">Settings |
---|
8 | </span></a> |
---|
9 | </li> |
---|
10 | <li> |
---|
11 | <a href="#tab2" data-toggle="tab"> |
---|
12 | <span i18n:translate="">Applicants |
---|
13 | </span></a> |
---|
14 | </li> |
---|
15 | <li> |
---|
16 | <a href="#tab3" data-toggle="tab"> |
---|
17 | <span i18n:translate="">Local Roles |
---|
18 | </span></a> |
---|
19 | </li> |
---|
20 | </ul> |
---|
21 | <div class="tab-content"> |
---|
22 | <div id="tab1" class="active tab-pane"> |
---|
23 | <br /> |
---|
24 | <table class="form-table"> |
---|
25 | <tbody> |
---|
26 | <tal:widgets content="structure provider:widgets" /> |
---|
27 | </tbody> |
---|
28 | </table> |
---|
29 | <div tal:condition="view/availableActions"> |
---|
30 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
31 | <input tal:condition="python:action.label in view.taboneactions" |
---|
32 | tal:replace="structure action/render"/> |
---|
33 | </span> |
---|
34 | </div> |
---|
35 | </div> |
---|
36 | <div id="tab2" class="tab-pane"> |
---|
37 | <br /> |
---|
38 | This container contains <span tal:replace="python: context.counts[0]-context.counts[1]">UNUSED</span> unused pre-filled records.<br /> |
---|
39 | <tal:showApplicants condition="view/showApplicants"> |
---|
40 | <br /> |
---|
41 | <table class="kofa-data-table 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 tal:repeat="appl python:[appl for appl in context.values() if appl.container_code.endswith('+')]"> |
---|
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 | <input type="checkbox" onClick="toggle(this, 'val_id')" /> |
---|
81 | <span i18n:translate="">Select all</span> |
---|
82 | <br /><br /> |
---|
83 | <div tal:condition="view/availableActions"> |
---|
84 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
85 | <input tal:condition="python:action.label in view.tabtwoactions" |
---|
86 | tal:replace="structure action/render"/> |
---|
87 | </span> |
---|
88 | </div> |
---|
89 | </tal:showApplicants> |
---|
90 | <tal:showNoApplicants condition="not: view/showApplicants"> |
---|
91 | <p i18n:translate="note_acmp"> |
---|
92 | There are more than |
---|
93 | <span tal:replace="view/max_applicants">MAX_APPLICANTS</span> |
---|
94 | application records in this container. |
---|
95 | In order to prevent from downloading big amounts of data, the |
---|
96 | Applicants tab has been disabled. Please use the |
---|
97 | <span i18n:name="search_link"> |
---|
98 | <a tal:attributes="href python: view.url(layout.site, 'applicants/search')" |
---|
99 | i18n:translate=""> |
---|
100 | search form |
---|
101 | </a> |
---|
102 | </span> |
---|
103 | for accessing application records. |
---|
104 | </p> |
---|
105 | </tal:showNoApplicants> |
---|
106 | </div> |
---|
107 | <div id="tab3" class="tab-pane"> <br /> |
---|
108 | <table class="kofa-data-table dataTableManage"> |
---|
109 | <thead> |
---|
110 | <tr> |
---|
111 | <th> |
---|
112 | </th> |
---|
113 | <th i18n:translate="">User Id |
---|
114 | </th> |
---|
115 | <th i18n:translate="">Name |
---|
116 | </th> |
---|
117 | <th i18n:translate="">Local Role |
---|
118 | </th> |
---|
119 | </tr> |
---|
120 | </thead> |
---|
121 | <tbody> |
---|
122 | <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td> |
---|
123 | <input type="checkbox" name="role_id" |
---|
124 | tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> |
---|
125 | <td tal:content="entry/user_name"> USERNAME </td> |
---|
126 | <td tal:content="entry/user_title"> USERTITLE </td> |
---|
127 | <td tal:content="entry/local_role_title"> LOCAL ROLE </td> |
---|
128 | </tr> |
---|
129 | </tbody> |
---|
130 | </table> |
---|
131 | <div tal:condition="view/availableActions"> |
---|
132 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
133 | <input tal:condition="python:action.label in view.tabthreeactions1" |
---|
134 | tal:replace="structure action/render"/> |
---|
135 | </span> |
---|
136 | </div> <br /><br /> |
---|
137 | <table class="form-table"> |
---|
138 | <tr> |
---|
139 | <td> |
---|
140 | <select id="user" name="user" class="form-control"> |
---|
141 | <option tal:repeat="user view/getUsers" |
---|
142 | tal:attributes="value user/name"> |
---|
143 | <span tal:replace="user/val">USERSTRING</span> |
---|
144 | </option> |
---|
145 | </select> |
---|
146 | </td> |
---|
147 | <td> |
---|
148 | <select id="local_role" name="local_role" class="form-control"> |
---|
149 | <option tal:repeat="localrole view/getLocalRoles" |
---|
150 | tal:attributes="value localrole/name"> |
---|
151 | <span tal:replace="localrole/title">LOCALROLETITLE</span> |
---|
152 | </option> |
---|
153 | </select> |
---|
154 | </td> |
---|
155 | <td> |
---|
156 | <div tal:condition="view/availableActions"> |
---|
157 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
158 | <input tal:condition="python:action.label in view.tabthreeactions2" |
---|
159 | tal:replace="structure action/render"/> |
---|
160 | </span> |
---|
161 | </div> |
---|
162 | </td> |
---|
163 | </tr> |
---|
164 | </table> |
---|
165 | </div> |
---|
166 | </div> |
---|
167 | </form> |
---|