Ignore:
Timestamp:
19 May 2011, 19:40:10 (14 years ago)
Author:
Henrik Bettermann
Message:

Revert r6151. The ContainerManageFormPage? does not make sense. Its code cannot be reused.

Implement local role assignment on DepartmentManageFormPage?.

There is a lot of recurring code in pages.py. I have no ideas how to reuse the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt

    r6025 r6152  
    2727  <li><a href="#tab-2">Courses</a></li>
    2828  <li><a href="#tab-3">Certificates</a></li>
     29  <li><a href="#tab-4">Local Roles</a></li>
    2930</ul>
    3031   
     
    146147    </div>         
    147148</div>
     149
     150<div id="tab-4">
     151    <h3>Manage local roles</h3>
     152    <table class="zebra">
     153    <tr>
     154        <td>
     155        <label>User:</label>
     156        </td>
     157        <td>
     158            <select  id="user" name="user"  tal:repeat="user view/getUsers">
     159              <option tal:attributes="value user/name">
     160                <span tal:replace="user/val/description">USERTITLE</span>
     161              </option>
     162            </select>
     163        </td>
     164    </tr>
     165    <tr>
     166        <td>
     167        <label>Local Role:</label>
     168        </td>
     169        <td>
     170            <select  id="local_role" name="local_role"  tal:repeat="localrole view/getLocalRoles">
     171              <option tal:attributes="value localrole/name">
     172                <span tal:replace="localrole/title">LOCALROLETITLE</span>
     173              </option>
     174            </select>
     175        </td>
     176    </tr>
     177    </table>
     178
     179    <div id="actionsView">
     180        <span class="actionButtons" tal:condition="view/availableActions">
     181            <span tal:repeat="action view/actions"
     182                  tal:omit-tag="">
     183              <input tal:condition="python:action.label in view.tabfouractions"
     184                     tal:replace="structure action/render"/>
     185            </span>
     186        </span>
     187    </div>
     188</div>
    148189   
    149190</div>
Note: See TracChangeset for help on using the changeset viewer.