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

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

readability improved
isStudent instead of isOwner

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