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

Last change on this file was 16327, checked in by Henrik Bettermann, 4 years ago

Make maximum number of applicants on ApplicantsContainerManageFormPage
customizable.

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