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

Last change on this file since 11727 was 11254, checked in by uli, 11 years ago

Merge changes from uli-diazo-themed back into trunk. If this works, then a miracle happened.

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