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

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

external clearance edit form added (use-macro)

  • 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           isManager context/isManager;
5           isStaff context/isStaff;
6           isClearanceOfficer context/isClearanceOfficer;
7           isStudent context/isStudent;
8           review_state info/review_state;
9           clear_review_state info/clear_review_state;
10           editable python: (isStudent and clear_review_state == 'open' or isManager) and not isClearanceOfficer;
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.