source: main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootmanagepage.pt @ 8403

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

Add description (= introduction) to ApplicantsRoot?. Adjust ApplicantsPlugin? accordingly.

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