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

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

Remove actionsView css attribute and rework page templates with tables.

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