source: main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt @ 7463

Last change on this file since 7463 was 7463, checked in by Henrik Bettermann, 13 years ago

Move form status message to site layout pagetemplates. This saves a lot of code.

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