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

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

use_session = False

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