source: main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/applicants/browser_templates/applicantscontainermanagepage.pt @ 10021

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

Fix DYNAMIC_CONTENT.

File size: 5.5 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          <a tal:attributes="href python: view.url(layout.site, 'applicants/search')">
93              <span i18n:name="search_form">search form</span>
94          </a>
95          for accessing application records.
96      </p>
97    </tal:showNoApplicants>
98    </div>
99    <div id="tab-3" tal:attributes="class view/tab3"> <br />
100      <table class="display dataTableManage">
101        <thead>
102          <tr>
103            <th>&nbsp;
104            </th>
105            <th i18n:translate="">User Id
106            </th>
107            <th i18n:translate="">Name
108            </th>
109            <th i18n:translate="">Local Role
110            </th>
111          </tr>
112        </thead>
113        <tbody>
114          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>
115              <input type="checkbox" name="role_id"
116                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
117            <td tal:content="entry/user_name"> USERNAME  </td>
118            <td tal:content="entry/user_title"> USERTITLE  </td>
119            <td tal:content="entry/local_role_title"> LOCAL ROLE  </td>
120          </tr>
121        </tbody>
122      </table>
123      <div tal:condition="view/availableActions">
124        <span tal:repeat="action view/actions" tal:omit-tag="">
125          <input tal:condition="python:action.label in view.tabthreeactions1"
126                  tal:replace="structure action/render"/>
127        </span>
128      </div> <br /><br />
129      <table class="form-table">
130        <tr> <td>
131            <select id="user" name="user">
132              <option tal:repeat="user view/getUsers"
133                      tal:attributes="value user/name">
134              <span tal:replace="user/val/title">USERTITLE
135              </span>
136              </option>
137            </select> </td> <td>
138            <select id="local_role" name="local_role">
139              <option tal:repeat="localrole view/getLocalRoles"
140                      tal:attributes="value localrole/name">
141              <span tal:replace="localrole/title">LOCALROLETITLE
142              </span>
143              </option>
144            </select> </td> <td>
145            <div tal:condition="view/availableActions">
146              <span tal:repeat="action view/actions" tal:omit-tag="">
147                <input tal:condition="python:action.label in view.tabthreeactions2"
148                       tal:replace="structure action/render"/>
149              </span>
150            </div> </td>
151        </tr>
152      </table>
153    </div>
154  </div>
155</form>
Note: See TracBrowser for help on using the repository browser.