source: main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt @ 7684

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

Start internationalization of pagetemplates. Clean up and remove unneeded i18n:translate tags first.

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