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

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

clearance_edit_form slimmed down

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