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

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

redirect for anonymous

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