source: main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/facultymanagepage.pt @ 9193

Last change on this file since 9193 was 7811, checked in by uli, 13 years ago

Rename all non-locales stuff from sirp to kofa.

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