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