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 | titles here/getStudentObjectTitles;"> |
---|
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_name" />: |
---|
39 | </span> |
---|
40 | <span tal:content="titles/StudentClearance" /> |
---|
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> |
---|