1 | <form action="." tal:attributes="action request/URL" method="POST" |
---|
2 | i18n:domain="waeup.sirp" 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:block repeat="widget view/widgets"> |
---|
26 | <tr> |
---|
27 | <td class="fieldname"> |
---|
28 | <span tal:condition="widget/required">* |
---|
29 | </span> |
---|
30 | <span tal:content="widget/label">LABEL |
---|
31 | </span>: |
---|
32 | </td> |
---|
33 | <td> |
---|
34 | <span tal:content="structure widget"> |
---|
35 | <input type="text" /> |
---|
36 | </span> |
---|
37 | <tal:error tal:condition="widget/error"> |
---|
38 | <span tal:replace="structure widget/error">ERROR |
---|
39 | </span> |
---|
40 | </tal:error> |
---|
41 | <tal:hint tal:condition="widget/hint"> |
---|
42 | <span tal:content="structure widget/hint">HINT |
---|
43 | </span> |
---|
44 | </tal:hint> </td> |
---|
45 | </tr> |
---|
46 | </tal:block> |
---|
47 | </tbody> |
---|
48 | </table> |
---|
49 | <div tal:condition="view/availableActions"> |
---|
50 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
51 | <input tal:condition="python:action.label in view.taboneactions" |
---|
52 | tal:replace="structure action/render"/> |
---|
53 | </span> |
---|
54 | </div> |
---|
55 | </div> |
---|
56 | <div id="tab-2" tal:attributes="class view/tab2"> |
---|
57 | <h3 i18n:translate="">Applicants</h3> |
---|
58 | <table class="display dataTableManage"> |
---|
59 | <thead> |
---|
60 | <tr> |
---|
61 | <th> |
---|
62 | </th> |
---|
63 | <th i18n:translate="">Application Number |
---|
64 | </th> |
---|
65 | <th i18n:translate="">Full Name |
---|
66 | </th> |
---|
67 | <th i18n:translate="">First Choice |
---|
68 | </th> |
---|
69 | <th i18n:translate="">Application State |
---|
70 | </th> |
---|
71 | </tr> |
---|
72 | </thead> |
---|
73 | <tbody> |
---|
74 | <tr class="gradeC" tal:repeat="appl context/values"> |
---|
75 | <td> |
---|
76 | <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" /> |
---|
77 | </td> |
---|
78 | <td> |
---|
79 | <a tal:attributes="href python: view.url(appl)" |
---|
80 | tal:content="appl/__name__">NUMBER</a> |
---|
81 | </td> |
---|
82 | <td> |
---|
83 | <span tal:replace="appl/display_fullname">FULLNAME |
---|
84 | </span> |
---|
85 | </td> |
---|
86 | <td> |
---|
87 | <span tal:replace="appl/course1/code|nothing">FIRSTCHOICE |
---|
88 | </span> |
---|
89 | </td> |
---|
90 | <td> |
---|
91 | <span tal:replace="appl/translated_state">STATE |
---|
92 | </span> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | </tbody> |
---|
96 | </table> |
---|
97 | <div tal:condition="view/availableActions"> |
---|
98 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
99 | <input tal:condition="python:action.label in view.tabtwoactions" |
---|
100 | tal:replace="structure action/render"/> |
---|
101 | </span> |
---|
102 | </div> |
---|
103 | </div> |
---|
104 | <div id="tab-3" tal:attributes="class view/tab3"> <br /> |
---|
105 | <table class="display dataTableManage"> |
---|
106 | <thead> |
---|
107 | <tr> |
---|
108 | <th> |
---|
109 | </th> |
---|
110 | <th i18n:translate="">User Id |
---|
111 | </th> |
---|
112 | <th i18n:translate="">Name |
---|
113 | </th> |
---|
114 | <th i18n:translate="">Local Role |
---|
115 | </th> |
---|
116 | </tr> |
---|
117 | </thead> |
---|
118 | <tbody> |
---|
119 | <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> |
---|
120 | <input type="checkbox" name="role_id" |
---|
121 | tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> |
---|
122 | <td tal:content="entry/user_name"> USERNAME </td> |
---|
123 | <td tal:content="entry/user_title"> USERTITLE </td> |
---|
124 | <td tal:content="entry/local_role_title"> LOCAL ROLE </td> |
---|
125 | </tr> |
---|
126 | </tbody> |
---|
127 | </table> |
---|
128 | <div tal:condition="view/availableActions"> |
---|
129 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
130 | <input tal:condition="python:action.label in view.tabthreeactions1" |
---|
131 | tal:replace="structure action/render"/> |
---|
132 | </span> |
---|
133 | </div> <br /><br /> |
---|
134 | <table class="form-table"> |
---|
135 | <tr> <td> |
---|
136 | <select id="user" name="user"> |
---|
137 | <option tal:repeat="user view/getUsers" |
---|
138 | tal:attributes="value user/name"> |
---|
139 | <span tal:replace="user/val/title">USERTITLE |
---|
140 | </span> |
---|
141 | </option> |
---|
142 | </select> </td> <td> |
---|
143 | <select id="local_role" name="local_role"> |
---|
144 | <option tal:repeat="localrole view/getLocalRoles" |
---|
145 | tal:attributes="value localrole/name"> |
---|
146 | <span tal:replace="localrole/title">LOCALROLETITLE |
---|
147 | </span> |
---|
148 | </option> |
---|
149 | </select> </td> <td> |
---|
150 | <div tal:condition="view/availableActions"> |
---|
151 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
152 | <input tal:condition="python:action.label in view.tabthreeactions2" |
---|
153 | tal:replace="structure action/render"/> |
---|
154 | </span> |
---|
155 | </div> </td> |
---|
156 | </tr> |
---|
157 | </table> |
---|
158 | </div> |
---|
159 | </div> |
---|
160 | </form> |
---|