Ignore:
Timestamp:
18 May 2011, 15:57:39 (13 years ago)
Author:
Henrik Bettermann
Message:

Add 'Local roles' tab to facultymanagepage.pt and implement assignment of local roles on faculty level. The removal facilities and tests will follow.

File:
1 edited

Legend:

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

    r6025 r6126  
    2626  <li><a href="#tab-1"><span>Settings</span></a></li>
    2727  <li><a href="#tab-2"><span tal:content="view/subunits">Contents</span></a></li>
     28  <li><a href="#tab-3"><span>Local Roles</span></a></li>
    2829</ul>
    2930   
     
    111112        </span>
    112113    </div>     
    113  
    114114</div>
     115
     116<div id="tab-3">
     117    <h3>Manage local roles</h3>
     118    <table class="zebra">
     119    <tr>
     120        <td>
     121        <label for="users">User:</label>
     122        </td>
     123        <td>
     124            <select  id="user" name="user"  tal:repeat="user view/getUsers">
     125              <option tal:attributes="value user/name">
     126                <span tal:replace="user/val/description">USERTITLE</span>
     127              </option>
     128            </select>
     129        </td>
     130    </tr>
     131    <tr>
     132        <td>
     133        <label for="local_roles">Local Role:</label>
     134        </td>
     135        <td>
     136            <select  id="local_role" name="local_role"  tal:repeat="localrole view/getLocalRoles">
     137              <option tal:attributes="value localrole/name">
     138                <span tal:replace="localrole/title">LOCALROLETITLE</span>
     139              </option>
     140            </select>
     141        </td>
     142    </tr>
     143    </table>
     144
     145    <div id="actionsView">
     146        <span class="actionButtons" tal:condition="view/availableActions">
     147            <span tal:repeat="action view/actions"
     148                  tal:omit-tag="">
     149              <input tal:condition="python:action.label in view.tabthreeactions"
     150                     tal:replace="structure action/render"/>
     151            </span>
     152        </span>
     153    </div>
     154</div>
     155
    115156</div>
    116157</form> 
Note: See TracChangeset for help on using the changeset viewer.