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

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

waeup_section_wf instead of section_folder_wf
SectionOfficer? role added to most managed permission sets and transition guards

  • Property svn:keywords set to Id
File size: 2.0 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           rendered_main python:info['clear_doc'].render(request=request,
13                                               layout_mode = mode,
14                                               schema_id='student_clearance',
15                                               layout_id='student_clearance',
16                                               use_session=True);
17           form_action string:clearance_edit;
18           creation python:False;
19    ">
20<metal:block use-macro="here/waeup_content_master/macros/master">
21  <metal:block fill-slot="header">
22    <metal:block use-macro="here/clearance_edit_lib/macros/header" />
23  </metal:block>
24  <metal:block fill-slot="main">
25    <form action="ACTION" method="post" id="editForm"
26          enctype="multipart/form-data" class="workflow"
27          tal:attributes="action form_action">
28      <div class="group">
29        <div class="documentFields">
30          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
31                     replace="structure python:getFormUidHtml(request)"/>
32          <input type="hidden" id="button_placeholder" name="button_placeholder" value="" />
33          <div id="rendered_main" tal:content="structure rendered_main">
34            CONTENT
35          </div>
36        </div>
37      </div>
38      <metal:block use-macro="here/clearance_edit_lib/macros/buttons" />
39      </form>
40      <div id="ajax_psm" style="display:none">
41        ajax feedback
42      </div>
43    </metal:block>
44  </metal:block>
45</tal:block>
46</metal:block>
Note: See TracBrowser for help on using the repository browser.