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

Last change on this file since 6740 was 6461, checked in by Henrik Bettermann, 14 years ago

Replace span tags by div tags. This ensures that the action buutons appear below table information.

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