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