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