source: main/waeup.kofa/branches/0.2/src/waeup/kofa/applicants/browser_templates/applicantsrootmanagepage.pt @ 14292

Last change on this file since 14292 was 8547, checked in by Henrik Bettermann, 12 years ago

Disable Applicants tab for containers with more than 5000 records.

File size: 4.8 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
38      <p i18n:translate="note_armp">
39        Please note that containers will be opened in manage mode here.
40        All application record links will be loaded into your browser which
41        can take a considerable time depending on your bandwidth.
42        Please be patient until all records have been loaded.
43      </p>
44
45      <table class="display dataTableManage">
46        <thead>
47          <tr>
48            <th>&nbsp;
49            </th>
50            <th i18n:translate="">Year
51            </th>
52            <th i18n:translate="">Code
53            </th>
54            <th i18n:translate="">Title
55            </th>
56            <th i18n:translate="">Records
57            </th>
58          </tr>
59        </thead>
60        <tbody>
61          <tr tal:repeat="entry context/values"         class="gradeC"> <td>
62              <input type="checkbox" name="val_id"
63                tal:attributes="value entry/__name__" /> </td>
64            <td tal:content="entry/year">YEAR</td> <td>
65              <a href=""
66                tal:attributes="href python:view.url(entry) + '/manage'"
67                tal:content="entry/__name__">CODE</a> </td>
68            <td tal:content="entry/title">TITLE</td>
69            <td tal:content="python:len(entry)">YEAR</td>
70          </tr>
71        </tbody>
72      </table>
73      <div tal:condition="view/availableActions">
74        <span tal:repeat="action view/actions" tal:omit-tag="">
75          <input tal:condition="python:action.label in view.tabtwoactions"
76            tal:replace="structure action/render"/>
77        </span>
78      </div>
79    </div>
80    <div id="tab-3" tal:attributes="class view/tab3">
81      <br />
82      <table class="display dataTableManage">
83        <thead>
84          <tr>
85            <th>&nbsp;
86            </th>
87            <th i18n:translate="">User Id
88            </th>
89            <th i18n:translate="">Name
90            </th>
91            <th i18n:translate="">Local Role
92            </th>
93          </tr>
94        </thead>
95        <tbody>
96          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">
97            <td> <input type="checkbox" name="role_id"
98                    tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />  </td>
99            <td tal:content="entry/user_name">USERNAME</td>
100            <td tal:content="entry/user_title">USERTITLE</td>
101            <td tal:content="entry/local_role_title">LOCAL ROLE</td>
102          </tr>
103        </tbody>
104      </table>
105      <div tal:condition="view/availableActions">
106        <span tal:repeat="action view/actions" tal:omit-tag="">
107          <input tal:condition="python:action.label in view.tabthreeactions1"
108            tal:replace="structure action/render"/>
109        </span>
110      </div> <br /><br />
111      <table class="form-table">
112        <tr> <td>
113            <select id="user" name="user">
114              <option tal:repeat="user view/getUsers"
115                tal:attributes="value user/name">
116              <span tal:replace="user/val/title">USERTITLE
117              </span>
118              </option>
119            </select> </td> <td>
120            <select id="local_role" name="local_role">
121              <option tal:repeat="localrole view/getLocalRoles"
122                tal:attributes="value localrole/name">
123              <span tal:replace="localrole/title">LOCALROLETITLE
124              </span>
125              </option>
126            </select> </td> <td>
127            <div tal:condition="view/availableActions">
128              <span tal:repeat="action view/actions" tal:omit-tag="">
129                <input tal:condition="python:action.label in view.tabthreeactions2"
130                  tal:replace="structure action/render"/>
131              </span>
132            </div> </td>
133        </tr>
134      </table>
135    </div>
136  </div>
137</form>
Note: See TracBrowser for help on using the repository browser.