source: main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantscontainermanagepage.pt @ 9910

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

Fix localization.

File size: 5.6 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2  i18n:domain="waeup.kofa" class="edit-form" enctype="multipart/form-data">
3
4  <ul class="tabs" data-tabs="tabs">
5    <li tal:attributes="class view/tab1">
6    <a href="#tab-1">
7      <span i18n:translate="">Settings
8      </span></a>
9    </li>
10    <li tal:attributes="class view/tab2">
11    <a href="#tab-2">
12      <span i18n:translate="">Applicants
13      </span></a>
14    </li>
15    <li tal:attributes="class view/tab3">
16    <a href="#tab-3">
17      <span i18n:translate="">Local Roles
18      </span></a>
19    </li>
20  </ul>
21  <div class="tab-content">
22    <div id="tab-1" tal:attributes="class view/tab1">
23      <table class="form-table">
24        <tbody>
25          <tal:widgets content="structure provider:widgets" />
26        </tbody>
27      </table>
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    <tal:showApplicants  condition="view/showApplicants">
37    <input type="checkbox" onClick="toggle(this, 'val_id')" />
38    <span  i18n:translate="">Select all</span>
39    <br /><br />
40
41      <table class="display dataTableManage">
42        <thead>
43          <tr>
44            <th>&nbsp;
45            </th>
46            <th i18n:translate="">Application Number
47            </th>
48            <th i18n:translate="">Full Name
49            </th>
50            <th i18n:translate="">First Choice
51            </th>
52            <th i18n:translate="">Application State
53            </th>
54          </tr>
55        </thead>
56        <tbody>
57          <tr class="gradeC" tal:repeat="appl context/values">
58            <td>
59              <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" />
60            </td>
61            <td>
62              <a tal:attributes="href python: view.url(appl)"
63                 tal:content="appl/__name__">NUMBER</a>
64            </td>
65            <td>
66              <span tal:replace="appl/display_fullname">FULLNAME
67              </span>
68            </td>
69            <td>
70              <span tal:replace="appl/course1/code|nothing">FIRSTCHOICE
71              </span>
72            </td>
73            <td>
74              <span tal:replace="appl/translated_state">STATE
75              </span>
76            </td>
77          </tr>
78        </tbody>
79      </table>
80      <div tal:condition="view/availableActions">
81        <span tal:repeat="action view/actions" tal:omit-tag="">
82          <input tal:condition="python:action.label in view.tabtwoactions"
83                 tal:replace="structure action/render"/>
84        </span>
85      </div>
86    </tal:showApplicants>
87    <tal:showNoApplicants condition="not: view/showApplicants">
88      <p i18n:translate="note_acmp">
89          There are more than 5000 application records in this container.
90          In order to prevent from downloading big amounts of data, the
91          Applicants tab has been disabled. Please use the
92          <span i18n:name="search_link">
93            <a tal:attributes="href python: view.url(layout.site, 'applicants/search')"
94               i18n:translate="">
95                search form
96            </a>
97          </span>
98          for accessing application records.
99      </p>
100    </tal:showNoApplicants>
101    </div>
102    <div id="tab-3" tal:attributes="class view/tab3"> <br />
103      <table class="display dataTableManage">
104        <thead>
105          <tr>
106            <th>&nbsp;
107            </th>
108            <th i18n:translate="">User Id
109            </th>
110            <th i18n:translate="">Name
111            </th>
112            <th i18n:translate="">Local Role
113            </th>
114          </tr>
115        </thead>
116        <tbody>
117          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
118              <input type="checkbox" name="role_id"
119                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
120            <td tal:content="entry/user_name"> USERNAME  </td>
121            <td tal:content="entry/user_title"> USERTITLE  </td>
122            <td tal:content="entry/local_role_title"> LOCAL ROLE  </td>
123          </tr>
124        </tbody>
125      </table>
126      <div tal:condition="view/availableActions">
127        <span tal:repeat="action view/actions" tal:omit-tag="">
128          <input tal:condition="python:action.label in view.tabthreeactions1"
129                  tal:replace="structure action/render"/>
130        </span>
131      </div> <br /><br />
132      <table class="form-table">
133        <tr> <td>
134            <select id="user" name="user">
135              <option tal:repeat="user view/getUsers"
136                      tal:attributes="value user/name">
137              <span tal:replace="user/val/title">USERTITLE
138              </span>
139              </option>
140            </select> </td> <td>
141            <select id="local_role" name="local_role">
142              <option tal:repeat="localrole view/getLocalRoles"
143                      tal:attributes="value localrole/name">
144              <span tal:replace="localrole/title">LOCALROLETITLE
145              </span>
146              </option>
147            </select> </td> <td>
148            <div tal:condition="view/availableActions">
149              <span tal:repeat="action view/actions" tal:omit-tag="">
150                <input tal:condition="python:action.label in view.tabthreeactions2"
151                       tal:replace="structure action/render"/>
152              </span>
153            </div> </td>
154        </tr>
155      </table>
156    </div>
157  </div>
158</form>
Note: See TracBrowser for help on using the repository browser.