1 | <form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data"> |
---|
2 | <ul class="tabs" data-tabs="tabs"> |
---|
3 | <li class="active"> |
---|
4 | <a href="#tab-1"> |
---|
5 | <span tal:content="view/subunits">Contents |
---|
6 | </span></a> |
---|
7 | </li> |
---|
8 | <li> |
---|
9 | <a href="#tab-2"> |
---|
10 | <span>Local Roles |
---|
11 | </span></a> |
---|
12 | </li> |
---|
13 | </ul> |
---|
14 | <div class="tab-content"> |
---|
15 | <div id="tab-1" class="active"> |
---|
16 | <h3 tal:content="view/subunits">Applicants Containers</h3> |
---|
17 | <table class="display dataTableManage"> |
---|
18 | <thead> |
---|
19 | <tr> |
---|
20 | <th> |
---|
21 | </th> |
---|
22 | <th>Year |
---|
23 | </th> |
---|
24 | <th>Code |
---|
25 | </th> |
---|
26 | <th>Title |
---|
27 | </th> |
---|
28 | </tr> |
---|
29 | </thead> |
---|
30 | <tbody> |
---|
31 | <tr tal:repeat="entry context/values" class="gradeC"> <td> |
---|
32 | <input type="checkbox" name="val_id" tal:attributes="value entry/__name__" /> </td> |
---|
33 | <td tal:content="entry/year">Year </td> <td> |
---|
34 | <a href="" tal:attributes="href python:view.url(entry)" tal:content="entry/__name__">Code</a> </td> |
---|
35 | <td tal:content="entry/title">Title </td> |
---|
36 | </tr> |
---|
37 | </tbody> |
---|
38 | </table> |
---|
39 | <div tal:condition="view/availableActions"> |
---|
40 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
41 | <input tal:condition="python:action.label in view.taboneactions" tal:replace="structure action/render"/> |
---|
42 | </span> |
---|
43 | </div> |
---|
44 | </div> |
---|
45 | <div id="tab-2"> <br /> |
---|
46 | <table class="display dataTableManage"> |
---|
47 | <thead> |
---|
48 | <tr> |
---|
49 | <th> |
---|
50 | </th> |
---|
51 | <th>User Id |
---|
52 | </th> |
---|
53 | <th>Name |
---|
54 | </th> |
---|
55 | <th>Local Role |
---|
56 | </th> |
---|
57 | </tr> |
---|
58 | </thead> |
---|
59 | <tbody> |
---|
60 | <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> |
---|
61 | <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> |
---|
62 | <td tal:content="entry/user_name"> USERNAME </td> |
---|
63 | <td tal:content="entry/user_title"> USERTITLE </td> |
---|
64 | <td tal:content="entry/local_role_title"> LOCAL ROLE </td> |
---|
65 | </tr> |
---|
66 | </tbody> |
---|
67 | </table> |
---|
68 | <div tal:condition="view/availableActions"> |
---|
69 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
70 | <input tal:condition="python:action.label in view.tabtwoactions1" tal:replace="structure action/render"/> |
---|
71 | </span> |
---|
72 | </div> <br /><br /> |
---|
73 | <table class="form-table"> |
---|
74 | <tr> <td> |
---|
75 | <select id="user" name="user"> |
---|
76 | <option tal:repeat="user view/getUsers" tal:attributes="value user/name"> |
---|
77 | <span tal:replace="user/val/title">USERTITLE |
---|
78 | </span> |
---|
79 | </option> |
---|
80 | </select> </td> <td> |
---|
81 | <select id="local_role" name="local_role"> |
---|
82 | <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name"> |
---|
83 | <span tal:replace="localrole/title">LOCALROLETITLE |
---|
84 | </span> |
---|
85 | </option> |
---|
86 | </select> </td> <td> |
---|
87 | <div tal:condition="view/availableActions"> |
---|
88 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
89 | <input tal:condition="python:action.label in view.tabtwoactions2" tal:replace="structure action/render"/> |
---|
90 | </span> |
---|
91 | </div> </td> |
---|
92 | </tr> |
---|
93 | </table> |
---|
94 | </div> |
---|
95 | </div> |
---|
96 | </form> |
---|