source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/clearance_edit_form.pt @ 4376

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

merging with CPSSkinsless branch

In ZMI:

  • delete all portlets in .cps_portlets
  • delete all portlets in portal_cpsportlets
  • import Portlet Tool, Skins Tool and Themes Tool
  • optionally: - delete all themes in portal_themes and delete all method themes in portal_themes
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1<metal:definetemplate tal:define="template here/main_template/macros/master">
2<metal:definemacro define-macro="clearance_edit_form">
3<metal:usemacro use-macro=template>
4
5  <metal:main fill-slot="main"
6           tal:define="
7               info context/getClearanceInfo;">
8               
9      <metal:block tal:condition="not: info">
10        <span tal:content="here/illegal_view" />
11      </metal:block>
12      <metal:block tal:condition="info">
13      <metal:block tal:define="               
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    <!--  Administration -->
32    <tal:block condition="python: not(is_staff or is_so or is_student)">
33      <metal:block use-macro="here/error_not_found/macros/not_found" />
34    </tal:block>
35    <tal:block condition="is_staff">
36      <h3>
37        <span tal:condition="info">
38          <span tal:content="info/student/Title" />:
39        </span>
40        <span tal:content="here/title_or_id" />
41      </h3>
42      <br />   
43    </tal:block>
44    <!-- Student -->
45    <tal:block condition="python: is_student">
46      <a href=""
47         tal:attributes="href string:${here/academicsParent}">
48        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
49        Up one level
50      </a>
51      <h3>Fill Your Clearance/Eligibility Form!</h3>
52      <br />   
53    </tal:block>
54
55               
56    <form action="ACTION" method="post" id="editForm"
57          enctype="multipart/form-data" class="workflow"
58          tal:attributes="action form_action">
59      <div class="group">
60        <div class="documentFields">
61          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
62                     replace="structure python:getFormUidHtml(request)"/>
63          <input type="hidden" id="button_placeholder" name="button_placeholder" value="" />
64          <div id="rendered_main" tal:content="structure rendered_main">
65            CONTENT
66          </div>
67        </div>
68      </div>
69      <metal:block use-macro="here/clearance_edit_lib/macros/buttons" />
70      </form>
71      <div id="ajax_psm" style="display:none">
72        ajax feedback
73      </div>
74    </metal:block>
75    </metal:block>         
76  </metal:main>
77
78</metal:usemacro>
79</metal:definemacro>
80</metal:definetemplate>
Note: See TracBrowser for help on using the repository browser.