source: WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt @ 885

Last change on this file since 885 was 885, checked in by joachim, 18 years ago

cleaned up several things:

  1. the definitions for isManager, isStaff, and isClearanceOfficer

are now independant from eachother only based on roles or groups.
The Manager-Role is the superuser-role,
the is-Scripts document what is what.

since isStaff returns false if the member only has Manager-role,
in .cpsskins_theme it must now be:

if context.isStaff() or context.isManager():

return 'WAeUP_Backoffice'

todo: finish the merge of co_searchStudents and searchStudents

  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1<!--  clearance_edit_lib -->
2<!-- $Id: clearance_edit_lib.pt 885 2006-11-17 16:06:47Z joachim $ -->
3<!--  header -->
4<metal:block define-macro="header">
5  <!--  Administration -->
6  <tal:block condition="python: not(isStaff or isManager or isOwner)">
7    <metal:block use-macro="here/error_not_found/macros/not_found" />
8  </tal:block>
9  <tal:block condition="python: isStaff or isManager">
10    <a href=""
11       tal:attributes="href string:${here/academicsParent}">
12      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
13      Up one level
14    </a>
15    <h3>
16      <span tal:condition="info">
17        <span tal:content="info/student/Title" />:
18      </span>
19      <span tal:content="here/title_or_id" />
20    </h3>
21    <br />   
22  </tal:block>
23  <!--  Student -->
24  <tal:block condition="python: isOwner">
25    <a href=""
26       tal:attributes="href string:${here/academicsParent}">
27      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
28      Up one level
29    </a>
30    <h3>Fill Your Clearance/Eligibility Form!</h3>
31    <br />   
32  </tal:block>
33</metal:block>
34<!--  buttons -->
35<metal:block define-macro="buttons">
36  <!--  isManager -->
37  <tal:block condition="context/isManager">
38    <input type="submit" class="standalone"
39           name="cpsdocument_edit_button"
40           value="Save & Return Later"
41           id="cpsdocument_edit_button"
42           tal:condition="python: review_state == 'clearance_pin_entered'" />
43    <input type="submit" class="standalone"
44           name="cpsdocument_edit_and_view_button"
45           value="Save & Submit"
46           id="cpsdocument_edit_and_view_button"
47           tal:condition="python: review_state == 'clearance_pin_entered'" />
48    <input type="submit" class="standalone"
49           name="clear_and_validate_button"
50           value="Validate & Clear"
51           id="clear_and_validate_button"
52           tal:condition="python:review_state == 'clearance_requested'" />
53    <input type="submit" class="standalone"
54           name="reject_clearance_button"
55           value="Reject Clearance"
56           id="reject_clearance_button"
57           tal:condition="python:review_state == 'cleared_and_validated'" />
58  </tal:block>
59  <!--  isClearanceOfficer -->
60  <tal:block condition="context/isClearanceOfficer">
61    <input type="submit" class="standalone"
62           name="clear_and_validate_button"
63           value="Validate & Clear"
64           id="clear_and_validate_button"
65           tal:condition="python:review_state == 'clearance_requested'" />
66    <input type="submit" class="standalone"
67           name="reject_clearance_button"
68           value="Reject Clearance"
69           id="reject_clearance_button"
70           tal:condition="python:review_state == 'cleared_and_validated'" />
71  </tal:block>
72  <!--  isStudent -->
73  <tal:block condition="context/isStudent">
74    <input type="submit" class="standalone"
75           name="cpsdocument_edit_button"
76           value="Save & Return Later"
77           id="cpsdocument_edit_button"
78           tal:condition="python: review_state == 'clearance_pin_entered'" />
79    <input type="submit" class="standalone"
80           name="cpsdocument_edit_and_view_button"
81           value="Save & Submit"
82           id="cpsdocument_edit_and_view_button"
83           tal:condition="python: review_state == 'clearance_pin_entered'" />
84  </tal:block>
85</metal:block>
Note: See TracBrowser for help on using the repository browser.