source: WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt @ 1020

Last change on this file since 1020 was 1014, checked in by Henrik Bettermann, 18 years ago

SectionOfficer? sees student_clearance layout not ClearanceOfficer?

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1<metal:block define-macro="clearance_edit_form">
2<tal:block define="
3           info context/getStudentInfo;
4           is_so context/isSectionOfficer;
5           is_staff context/isStaff;
6           is_co context/isClearanceOfficer;
7           is_student context/isStudent;
8           review_state info/review_state;
9           clear_review_state info/clear_review_state;
10           editable python: (is_student and clear_review_state == 'opened' or is_so) and not is_co;
11           mode python: test(editable,'edit','view');
12           layout_id python: test(is_so,'student_clearance','student_clearance_fe');
13           rendered_main python:info['clear_doc'].render(request=request,
14                                               layout_mode = mode,
15                                               schema_id='student_clearance',
16                                               layout_id=layout_id,
17                                               use_session=True);
18           form_action string:clearance_edit;
19           creation python:False;
20    ">
21<metal:block use-macro="here/waeup_content_master/macros/master">
22  <metal:block fill-slot="header">
23    <metal:block use-macro="here/clearance_edit_lib/macros/header" />
24  </metal:block>
25  <metal:block fill-slot="main">
26    <form action="ACTION" method="post" id="editForm"
27          enctype="multipart/form-data" class="workflow"
28          tal:attributes="action form_action">
29      <div class="group">
30        <div class="documentFields">
31          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
32                     replace="structure python:getFormUidHtml(request)"/>
33          <input type="hidden" id="button_placeholder" name="button_placeholder" value="" />
34          <div id="rendered_main" tal:content="structure rendered_main">
35            CONTENT
36          </div>
37        </div>
38      </div>
39      <metal:block use-macro="here/clearance_edit_lib/macros/buttons" />
40      </form>
41      <div id="ajax_psm" style="display:none">
42        ajax feedback
43      </div>
44    </metal:block>
45  </metal:block>
46</tal:block>
47</metal:block>
Note: See TracBrowser for help on using the repository browser.