source: main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/applicants/browser_templates/applicantsrootmanagepage.pt @ 11150

Last change on this file since 11150 was 11051, checked in by Henrik Bettermann, 11 years ago

Use kofa-data-table css class for Diazo rules.

File size: 4.8 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          </tr>
57        </thead>
58        <tbody>
59          <tr tal:repeat="entry context/values"> <td>
60              <input type="checkbox" name="val_id"
61                tal:attributes="value entry/__name__" /> </td>
62            <td tal:content="entry/year">YEAR</td> <td>
63              <a href=""
64                tal:attributes="href python:view.url(entry) + '/manage'"
65                tal:content="entry/__name__">CODE</a> </td>
66            <td tal:content="entry/title">TITLE</td>
67            <td tal:content="python:len(entry)">YEAR</td>
68          </tr>
69        </tbody>
70      </table>
71      <div tal:condition="view/availableActions">
72        <span tal:repeat="action view/actions" tal:omit-tag="">
73          <input tal:condition="python:action.label in view.tabtwoactions"
74            tal:replace="structure action/render"/>
75        </span>
76      </div>
77    </div>
78    <div id="tab3" class="tab-pane">
79      <br />
80      <table class="kofa-data-table dataTableManage">
81        <thead>
82          <tr>
83            <th>&nbsp;
84            </th>
85            <th i18n:translate="">User Id
86            </th>
87            <th i18n:translate="">Name
88            </th>
89            <th i18n:translate="">Local Role
90            </th>
91          </tr>
92        </thead>
93        <tbody>
94          <tr tal:repeat="entry view/getUsersWithLocalRoles">
95            <td> <input type="checkbox" name="role_id"
96                    tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />  </td>
97            <td tal:content="entry/user_name">USERNAME</td>
98            <td tal:content="entry/user_title">USERTITLE</td>
99            <td tal:content="entry/local_role_title">LOCAL ROLE</td>
100          </tr>
101        </tbody>
102      </table>
103      <div tal:condition="view/availableActions">
104        <span tal:repeat="action view/actions" tal:omit-tag="">
105          <input tal:condition="python:action.label in view.tabthreeactions1"
106            tal:replace="structure action/render"/>
107        </span>
108      </div> <br /><br />
109      <div class="form-inline">
110        <br />
111        <div class="form-group">
112          <select id="user" name="user" class="form-control">
113            <option tal:repeat="user view/getUsers"
114                    tal:attributes="value user/name">
115            <span tal:replace="user/val/title">USERTITLE
116            </span>
117            </option>
118          </select>
119        </div>
120        <div class="form-group">
121          <select id="local_role" name="local_role" class="form-control">
122            <option tal:repeat="localrole view/getLocalRoles"
123                    tal:attributes="value localrole/name">
124            <span tal:replace="localrole/title">LOCALROLETITLE
125            </span>
126            </option>
127          </select>
128        </div>
129        <div class="form-group" tal:condition="view/availableActions">
130          <span tal:repeat="action view/actions" tal:omit-tag="">
131            <input tal:condition="python:action.label in view.tabthreeactions2"
132                   tal:replace="structure action/render"/>
133          </span>
134        </div>
135      </div>
136    </div>
137  </div>
138</form>
Note: See TracBrowser for help on using the repository browser.