source: main/waeup.kofa/branches/uli-rm-bootstrap/src/waeup/kofa/applicants/browser_templates/applicantscontainermanagepage.pt @ 17463

Last change on this file since 17463 was 14264, checked in by Henrik Bettermann, 8 years ago

Display user id (name) in brackets.

File size: 5.8 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2  i18n:domain="waeup.kofa" enctype="multipart/form-data">
3
4 <ul class="tabs nav nav-tabs" data-tabs="tabs">
5    <li class="active">
6    <a href="#tab1" data-toggle="tab">
7      <span i18n:translate="">Settings
8      </span></a>
9    </li>
10    <li>
11    <a href="#tab2" data-toggle="tab">
12      <span i18n:translate="">Applicants
13      </span></a>
14    </li>
15    <li>
16    <a href="#tab3" data-toggle="tab">
17      <span i18n:translate="">Local Roles
18      </span></a>
19    </li>
20  </ul>
21  <div class="tab-content">
22    <div id="tab1" class="active tab-pane">
23      <br />
24      <table class="form-table">
25        <tbody>
26          <tal:widgets content="structure provider:widgets" />
27        </tbody>
28      </table>
29      <div  tal:condition="view/availableActions">
30        <span tal:repeat="action view/actions" tal:omit-tag="">
31          <input tal:condition="python:action.label in view.taboneactions"
32                 tal:replace="structure action/render"/>
33        </span>
34      </div>
35    </div>
36    <div id="tab2" class="tab-pane">
37    <br />
38    This container contains <span tal:replace="python: context.counts[0]-context.counts[1]">UNUSED</span> unused pre-filled records.<br />
39    <tal:showApplicants  condition="view/showApplicants">
40      <br />
41      <table class="kofa-data-table 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 tal:repeat="appl python:[appl for appl in context.values() if appl.container_code.endswith('+')]">
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      <input type="checkbox" onClick="toggle(this, 'val_id')" />
81      &nbsp;<span  i18n:translate="">Select all</span>
82      <br /><br />
83      <div tal:condition="view/availableActions">
84        <span tal:repeat="action view/actions" tal:omit-tag="">
85          <input tal:condition="python:action.label in view.tabtwoactions"
86                 tal:replace="structure action/render"/>
87        </span>
88      </div>
89    </tal:showApplicants>
90    <tal:showNoApplicants condition="not: view/showApplicants">
91      <p i18n:translate="note_acmp">
92          There are more than 1000 application records in this container.
93          In order to prevent from downloading big amounts of data, the
94          Applicants tab has been disabled. Please use the
95          <span i18n:name="search_link">
96            <a tal:attributes="href python: view.url(layout.site, 'applicants/search')"
97               i18n:translate="">
98                search form
99            </a>
100          </span>
101          for accessing application records.
102      </p>
103    </tal:showNoApplicants>
104    </div>
105    <div id="tab3" class="tab-pane"> <br />
106      <table class="kofa-data-table dataTableManage">
107        <thead>
108          <tr>
109            <th>&nbsp;
110            </th>
111            <th i18n:translate="">User Id
112            </th>
113            <th i18n:translate="">Name
114            </th>
115            <th i18n:translate="">Local Role
116            </th>
117          </tr>
118        </thead>
119        <tbody>
120          <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
121              <input type="checkbox" name="role_id"
122                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
123            <td tal:content="entry/user_name"> USERNAME  </td>
124            <td tal:content="entry/user_title"> USERTITLE  </td>
125            <td tal:content="entry/local_role_title"> LOCAL ROLE  </td>
126          </tr>
127        </tbody>
128      </table>
129      <div tal:condition="view/availableActions">
130        <span tal:repeat="action view/actions" tal:omit-tag="">
131          <input tal:condition="python:action.label in view.tabthreeactions1"
132                  tal:replace="structure action/render"/>
133        </span>
134      </div> <br /><br />
135      <table class="form-table">
136        <tr> <td>
137            <select id="user" name="user" class="form-control">
138              <option tal:repeat="user view/getUsers"
139                      tal:attributes="value user/name">
140              <span tal:replace="user/val/title">USERTITLE</span>
141              (<span tal:replace="user/val/name">USERNAME</span>)
142              </option>
143            </select> </td> <td>
144            <select id="local_role" name="local_role" class="form-control">
145              <option tal:repeat="localrole view/getLocalRoles"
146                      tal:attributes="value localrole/name">
147              <span tal:replace="localrole/title">LOCALROLETITLE</span>
148              </option>
149            </select> </td> <td>
150            <div tal:condition="view/availableActions">
151              <span tal:repeat="action view/actions" tal:omit-tag="">
152                <input tal:condition="python:action.label in view.tabthreeactions2"
153                       tal:replace="structure action/render"/>
154              </span>
155            </div> </td>
156        </tr>
157      </table>
158    </div>
159  </div>
160</form>
Note: See TracBrowser for help on using the repository browser.