source: WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form_manager.pt @ 886

Last change on this file since 886 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

File size: 2.4 KB
Line 
1<tal:block define="
2           info context/getStudentInfo;
3           isManager context/isManager;
4           isStaff context/isStaff;
5           isClearanceOfficer context/isClearanceOfficer;
6           isOwner context/isThisStudent;
7           edition python:(isOwner or isManager) and not isClearanceOfficer;
8           mode python: test(edition,'edit','view');
9           rendered_main python:info['clear_doc'].render(request=request,
10                                               layout_mode = mode,
11                                               schema_id='student_clearance',
12                                               layout_id='student_clearance',
13                                               use_session=True);
14           form_action string:clearance_edit_manager;
15           creation python:False;
16           review_state info/review_state
17    ">
18<metal:block use-macro="here/waeup_content_master/macros/master">
19  <metal:block fill-slot="header">
20    <span tal:condition="python: not(isStaff or isManager)">
21      <metal:block use-macro="here/error_not_found/macros/not_found" />
22    </span>
23    <span tal:condition="python: isStaff or isManager">
24      <a href=""
25         tal:attributes="href string:${here/academicsParent}">
26        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
27        Up one level
28      </a>
29      <h3>
30        <span tal:condition="info">
31          <span tal:content="info/student/Title" />:
32        </span>
33        <span tal:content="here/title_or_id" />
34      </h3>
35      <br />   
36    </span>
37  </metal:block>
38  <metal:block fill-slot="main">
39    <form action="ACTION" method="post" id="editForm"
40          enctype="multipart/form-data" class="workflow"
41          tal:attributes="action form_action">
42      <div class="group">
43        <div class="documentFields">
44          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
45                     replace="structure python:getFormUidHtml(request)"/>
46          <input type="hidden" id="button_placeholder" name="button_placeholder" value="" />
47          <div id="rendered_main" tal:content="structure rendered_main">
48            CONTENT
49          </div>
50        </div>
51      </div>
52      <metal:block use-macro="here/clearance_edit_lib/macros/buttons" />
53      </form>
54      <div id="ajax_psm" style="display:none">
55        ajax feedback
56      </div>
57    </metal:block>
58  </metal:block>
59</tal:block>
Note: See TracBrowser for help on using the repository browser.