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