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