Changeset 889


Ignore:
Timestamp:
17 Nov 2006, 22:18:39 (18 years ago)
Author:
Henrik Bettermann
Message:

readability improved
isStudent instead of isOwner

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt

    r888 r889  
    44           isStaff context/isStaff;
    55           isClearanceOfficer context/isClearanceOfficer;
    6            isOwner context/isStudent;
     6           isStudent context/isStudent;
    77           review_state info/review_state;
    8            edition python: (isOwner and review_state == 'clearance_pin_entered' or isManager) and not isClearanceOfficer;
    9            mode python: test(edition,'edit','view');
     8           clear_review_state info/clear_review_state;
     9           editable python: (isStudent and clear_review_state == 'open' or isManager) and not isClearanceOfficer;
     10           mode python: test(editable,'edit','view');
    1011           rendered_main python:info['clear_doc'].render(request=request,
    1112                                               layout_mode = mode,
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt

    r888 r889  
    44<metal:block define-macro="header">
    55  <!--  Administration -->
    6   <tal:block condition="python: not(isStaff or isManager or isOwner)">
     6  <tal:block condition="python: not(isStaff or isManager or isStudent)">
    77    <metal:block use-macro="here/error_not_found/macros/not_found" />
    88  </tal:block>
     
    2222  </tal:block>
    2323  <!--  Student -->
    24   <tal:block condition="python: isOwner">
     24  <tal:block condition="python: isStudent">
    2525    <a href=""
    2626       tal:attributes="href string:${here/academicsParent}">
Note: See TracChangeset for help on using the changeset viewer.