source: main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootmanagepage.pt @ 14395

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

Display user id (name) in brackets.

File size: 5.0 KB
Line 
1<form action="." tal:attributes="action request/URL"
2  i18n:domain="waeup.kofa" method="POST"  enctype="multipart/form-data">
3  <ul class="tabs nav nav-tabs" data-tabs="tabs">
4    <li class="active">
5    <a href="#tab1" data-toggle="tab">
6      <span i18n:translate="">Introduction
7      </span></a>
8    </li>
9    <li>
10    <a href="#tab2" data-toggle="tab">
11      <span tal:content="view/subunits">Contents
12      </span></a>
13    </li>
14    <li>
15    <a href="#tab3" data-toggle="tab">
16      <span i18n:translate="">Local Roles
17      </span></a>
18    </li>
19  </ul>
20  <div class="tab-content">
21    <div id="tab1" class="active tab-pane">
22     <br />
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="tab2" class="tab-pane">
36      <br />
37      <p i18n:translate="note_armp">
38        Please note that containers will be opened in manage mode here.
39        All application record links will be loaded into your browser which
40        can take a considerable time depending on your bandwidth.
41        Please be patient until all records have been loaded.
42      </p>
43      <table class="kofa-data-table dataTableManage">
44        <thead>
45          <tr>
46            <th>&nbsp;
47            </th>
48            <th i18n:translate="">Year
49            </th>
50            <th i18n:translate="">Code
51            </th>
52            <th i18n:translate="">Title
53            </th>
54            <th i18n:translate="">Records
55            </th>
56            <th i18n:translate="">Application Deadline
57            </th>
58          </tr>
59        </thead>
60        <tbody>
61          <tr tal:repeat="entry context/values"> <td>
62              <input type="checkbox" name="val_id"
63                tal:attributes="value entry/__name__" /> </td>
64            <td tal:content="entry/year">YEAR</td> <td>
65              <a href=""
66                tal:attributes="href python:view.url(entry) + '/manage'"
67                tal:content="entry/__name__">CODE</a> </td>
68            <td tal:content="entry/title">TITLE</td>
69            <td tal:content="python: len(entry)">RECORDS</td>
70            <td><span tal:content="python: layout.formatDatetime(entry.enddate)">
71                END</span></td>
72          </tr>
73        </tbody>
74      </table>
75      <div tal:condition="view/availableActions">
76        <span tal:repeat="action view/actions" tal:omit-tag="">
77          <input tal:condition="python:action.label in view.tabtwoactions"
78            tal:replace="structure action/render"/>
79        </span>
80      </div>
81    </div>
82    <div id="tab3" class="tab-pane">
83      <br />
84      <table class="kofa-data-table dataTableManage">
85        <thead>
86          <tr>
87            <th>&nbsp;
88            </th>
89            <th i18n:translate="">User Id
90            </th>
91            <th i18n:translate="">Name
92            </th>
93            <th i18n:translate="">Local Role
94            </th>
95          </tr>
96        </thead>
97        <tbody>
98          <tr tal:repeat="entry view/getUsersWithLocalRoles">
99            <td> <input type="checkbox" name="role_id"
100                    tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />  </td>
101            <td tal:content="entry/user_name">USERNAME</td>
102            <td tal:content="entry/user_title">USERTITLE</td>
103            <td tal:content="entry/local_role_title">LOCAL ROLE</td>
104          </tr>
105        </tbody>
106      </table>
107      <div tal:condition="view/availableActions">
108        <span tal:repeat="action view/actions" tal:omit-tag="">
109          <input tal:condition="python:action.label in view.tabthreeactions1"
110            tal:replace="structure action/render"/>
111        </span>
112      </div> <br /><br />
113      <div class="form-inline">
114        <br />
115        <div class="form-group">
116          <select id="user" name="user" class="form-control">
117            <option tal:repeat="user view/getUsers"
118                    tal:attributes="value user/name">
119            <span tal:replace="user/val/title">USERTITLE</span>
120            (<span tal:replace="user/val/name">USERNAME</span>)
121            </option>
122          </select>
123        </div>
124        <div class="form-group">
125          <select id="local_role" name="local_role" class="form-control">
126            <option tal:repeat="localrole view/getLocalRoles"
127                    tal:attributes="value localrole/name">
128            <span tal:replace="localrole/title">LOCALROLETITLE</span>
129            </option>
130          </select>
131        </div>
132        <div class="form-group" tal:condition="view/availableActions">
133          <span tal:repeat="action view/actions" tal:omit-tag="">
134            <input tal:condition="python:action.label in view.tabthreeactions2"
135                   tal:replace="structure action/render"/>
136          </span>
137        </div>
138      </div>
139    </div>
140  </div>
141</form>
Note: See TracBrowser for help on using the repository browser.