source: WAeUP_SRP/base/skins/waeup_student/clearance_edit_form.pt @ 3681

Last change on this file since 3681 was 3452, checked in by joachim, 17 years ago

sanitize getClearanceInfo and clearance_edit,
adopt views,
infopenalty? is now set to False.

  • 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="info context/getClearanceInfo;">
7               
8      <metal:block tal:condition="not: info">
9        <span tal:content="here/illegal_view" />
10      </metal:block>
11      <metal:block tal:condition="info">
12      <metal:block tal:define="               
13               is_so info/is_sectionofficer;
14               is_staff info/is_staff;
15               is_co info/is_clearanceofficer;
16               is_student info/is_student;
17               review_state info/review_state;
18               clear_review_state info/clear_review_state;
19               editable python:not is_co and (is_student and clear_review_state == 'opened' or is_so);
20               mode python: test(editable,'edit','view');
21               layout_id python: test(is_so,'student_clearance','student_clearance_fe');
22               rendered_main python:info['clear_doc'].render(request=request,
23                                                   layout_mode = mode,
24                                                   schema_id='student_clearance',
25                                                   layout_id=layout_id,
26                                                   use_session=True);
27               form_action string:clearance_edit;
28               creation python:False;">
29
30    <!--  Administration -->
31    <tal:block condition="python: not(is_staff or is_so or is_student)">
32      <metal:block use-macro="here/error_not_found/macros/not_found" />
33    </tal:block>
34    <tal:block condition="is_staff">
35      <h3>
36        <span tal:condition="info">
37          <span tal:content="info/student_name" />:
38        </span>
39        <span tal:content="here/title_or_id" />
40      </h3>
41      <br />   
42    </tal:block>
43    <!-- Student -->
44    <tal:block condition="python: is_student">
45      <a href=""
46         tal:attributes="href string:${here/academicsParent}">
47        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
48        Up one level
49      </a>
50      <h3>Fill Your Clearance/Eligibility Form!</h3>
51      <br />   
52    </tal:block>
53
54               
55    <form action="ACTION" method="post" id="editForm"
56          enctype="multipart/form-data" class="workflow"
57          tal:attributes="action form_action">
58      <div class="group">
59        <div class="documentFields">
60          <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml"
61                     replace="structure python:getFormUidHtml(request)"/>
62          <input type="hidden" id="button_placeholder" name="button_placeholder" value="" />
63          <div id="rendered_main" tal:content="structure rendered_main">
64            CONTENT
65          </div>
66        </div>
67      </div>
68      <metal:block use-macro="here/clearance_edit_lib/macros/buttons" />
69      </form>
70      <div id="ajax_psm" style="display:none">
71        ajax feedback
72      </div>
73    </metal:block>
74    </metal:block>         
75  </metal:main>
76
77</metal:usemacro>
78</metal:definemacro>
79</metal:definetemplate>
Note: See TracBrowser for help on using the repository browser.