source: main/waeup.kofa/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt @ 7807

Last change on this file since 7807 was 7737, checked in by Henrik Bettermann, 13 years ago

Replace widgets loop in all pagetemplates by the new widgets provider.

File size: 5.4 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2  i18n:domain="waeup.sirp" enctype="multipart/form-data">
3  <ul class="tabs" data-tabs="tabs">
4    <li tal:attributes="class view/tab1">
5    <a href="#tab-1">
6      <span i18n:translate="">Settings
7      </span></a>
8    </li>
9    <li tal:attributes="class view/tab2">
10    <a href="#tab-2" i18n:translate="">Courses</a>
11    </li>
12    <li tal:attributes="class view/tab3">
13    <a href="#tab-3" i18n:translate="">Certificates</a>
14    </li>
15    <li tal:attributes="class view/tab4">
16    <a href="#tab-4" i18n:translate="">Local Roles</a>
17    </li>
18  </ul>
19  <div class="tab-content">
20    <div id="tab-1" tal:attributes="class view/tab1">
21      <table class="form-table">
22        <tbody>
23          <tal:widgets content="structure provider:widgets" />
24        </tbody>
25      </table>
26      <div tal:condition="view/availableActions">
27        <span tal:repeat="action view/actions" tal:omit-tag="">
28          <input tal:condition="python:action.label in view.taboneactions"
29            tal:replace="structure action/render"/>
30        </span>
31      </div>
32    </div>
33    <div id="tab-2" tal:attributes="class view/tab2"> <br />
34      <table class="display dataTableManage">
35        <thead>
36          <tr>
37            <th>&nbsp;
38            </th>
39            <th i18n:translate="">Code
40            </th>
41            <th i18n:translate="">Title
42            </th>
43          </tr>
44        </thead>
45        <tbody>
46          <tr tal:repeat="entry view/getCourses" class="gradeC"> <td>
47              <input type="checkbox" name="val_id"
48                tal:attributes="value entry/name" /> </td> <td>
49              <a href="" tal:attributes="href entry/url"
50                tal:content="entry/name">Name</a> </td>
51            <td tal:content="entry/container/title"> Title </td>
52          </tr>
53        </tbody>
54      </table>
55      <div tal:condition="view/availableActions">
56        <span tal:repeat="action view/actions" tal:omit-tag="">
57          <input tal:condition="python:action.label in view.tabtwoactions"
58            tal:replace="structure action/render"/>
59        </span>
60      </div>
61    </div>
62    <div id="tab-3" tal:attributes="class view/tab3"> <br />
63      <table class="display dataTableManage">
64        <thead>
65          <tr>
66            <th>&nbsp;
67            </th>
68            <th i18n:translate="">Code
69            </th>
70            <th i18n:translate="">Title
71            </th>
72          </tr>
73        </thead>
74        <tbody>
75          <tr tal:repeat="entry view/getCertificates" class="gradeC"> <td>
76              <input type="checkbox" name="val_id"
77                tal:attributes="value entry/name" /> </td> <td>
78              <a href="" tal:attributes="href entry/url"
79                tal:content="entry/name">Name</a> </td>
80            <td tal:content="entry/container/title"> Title  </td>
81          </tr>
82        </tbody>
83      </table>
84      <div tal:condition="view/availableActions">
85        <span tal:repeat="action view/actions" tal:omit-tag="">
86          <input tal:condition="python:action.label in view.tabthreeactions"
87            tal:replace="structure action/render"/>
88        </span>
89      </div>
90    </div>
91    <div id="tab-4" tal:attributes="class view/tab4"> <br />
92      <table class="display dataTableManage">
93        <thead>
94          <tr>
95            <th>&nbsp;
96            </th>
97            <th i18n:translate="">User Id
98            </th>
99            <th i18n:translate="">Name
100            </th>
101            <th i18n:translate="">Local Role
102            </th>
103          </tr>
104        </thead>
105        <tbody>
106          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">
107            <td> <input type="checkbox" name="role_id"
108                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
109            <td tal:content="entry/user_name"> USERNAME </td>
110            <td tal:content="entry/user_title"> USERTITLE </td>
111            <td tal:content="entry/local_role_title"> LOCAL ROLE </td>
112          </tr>
113        </tbody>
114      </table>
115      <div tal:condition="view/availableActions">
116        <span tal:repeat="action view/actions" tal:omit-tag="">
117          <input tal:condition="python:action.label in view.tabfouractions1"
118            tal:replace="structure action/render"/>
119        </span>
120      </div> <br /><br />
121      <table class="form-table">
122        <tr> <td>
123            <select id="user" name="user">
124              <option tal:attributes="value user/name" tal:repeat="user view/getUsers">
125              <span tal:replace="user/val/title">USERTITLE
126              </span>
127              </option>
128            </select> </td> <td>
129            <select id="local_role" name="local_role">
130              <option tal:attributes="value localrole/name"
131                tal:repeat="localrole view/getLocalRoles">
132              <span tal:replace="localrole/title">LOCALROLETITLE
133              </span>
134              </option>
135            </select> </td> <td>
136            <div tal:condition="view/availableActions">
137              <span tal:repeat="action view/actions" tal:omit-tag="">
138                <input tal:condition="python:action.label in view.tabfouractions2"
139                  tal:replace="structure action/render"/>
140              </span>
141            </div> </td>
142        </tr>
143      </table>
144    </div>
145  </div>
146</form>
Note: See TracBrowser for help on using the repository browser.