source: main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt @ 11060

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

Backup

File size: 3.9 KB
Line 
1<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
2<div tal:define="status view/status" tal:condition="status" class="alert-message error">
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"  enctype="multipart/form-data">
13  <ul class="tabs" data-tabs="tabs">
14    <li class="active">
15    <a href="#tab-1">
16      <span tal:content="view/subunits">Contents
17      </span></a>
18    </li>
19    <li>
20    <a href="#tab-2">
21      <span>Local Roles
22      </span></a>
23    </li>
24  </ul>
25  <div class="tab-content">
26    <div id="tab-1" class="active">
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="gradeC"> <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 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="gradeC">  <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 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="form-table">
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/title">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.