1 | <tal:block define=" |
---|
2 | info context/getStudentInfo; |
---|
3 | mode python: test(context.isClearanceOfficer(info),'view','edit'); |
---|
4 | rendered_main python:info['clear_doc'].render(request=request, |
---|
5 | layout_mode = mode, |
---|
6 | schema_id='student_clearance', |
---|
7 | layout_id='student_clearance', |
---|
8 | use_session=True); |
---|
9 | form_action string:clearance_edit_manager; |
---|
10 | isManager context/isManager; |
---|
11 | edition python:True; |
---|
12 | creation python:False; |
---|
13 | review_state info/review_state |
---|
14 | "> |
---|
15 | <metal:block use-macro="here/waeup_content_master/macros/master"> |
---|
16 | <metal:block fill-slot="header"> |
---|
17 | <span tal:condition="not: isManager"> |
---|
18 | <metal:block use-macro="here/error_not_found/macros/not_found" /> |
---|
19 | </span> |
---|
20 | <span tal:condition="isManager"> |
---|
21 | <a href="" |
---|
22 | tal:attributes="href string:${here/academicsParent}"> |
---|
23 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
24 | Up one level |
---|
25 | </a> |
---|
26 | <h3> |
---|
27 | <span tal:condition="info"> |
---|
28 | <span tal:content="info/student/Title" />: |
---|
29 | </span> |
---|
30 | <span tal:content="here/title_or_id" /> |
---|
31 | </h3> |
---|
32 | <br /> |
---|
33 | </span> |
---|
34 | </metal:block> |
---|
35 | <metal:block fill-slot="main"> |
---|
36 | <form action="ACTION" method="post" id="editForm" |
---|
37 | enctype="multipart/form-data" class="workflow" |
---|
38 | tal:attributes="action form_action"> |
---|
39 | <div class="group"> |
---|
40 | <div class="documentFields"> |
---|
41 | <tal:block define="getFormUidHtml nocall:modules/Products.CPSDocument.utils/getFormUidHtml" |
---|
42 | replace="structure python:getFormUidHtml(request)"/> |
---|
43 | <input type="hidden" id="button_placeholder" name="button_placeholder" value="" /> |
---|
44 | <div id="rendered_main" tal:content="structure rendered_main"> |
---|
45 | CONTENT |
---|
46 | </div> |
---|
47 | </div> |
---|
48 | </div> |
---|
49 | <input type="submit" class="standalone" |
---|
50 | name="cpsdocument_edit_button" |
---|
51 | value="Save & Return Later" |
---|
52 | id="cpsdocument_edit_button" |
---|
53 | tal:condition="python: review_state == 'clearance_pin_entered'" /> |
---|
54 | <input type="submit" class="standalone" |
---|
55 | name="cpsdocument_edit_and_view_button" |
---|
56 | value="Save & Submit" |
---|
57 | id="cpsdocument_edit_and_view_button" |
---|
58 | tal:condition="python: review_state == 'clearance_pin_entered'" /> |
---|
59 | <input type="submit" class="standalone" |
---|
60 | name="clear_and_validate_button" |
---|
61 | value="Validate & Clear" |
---|
62 | id="clear_and_validate_button" |
---|
63 | tal:condition="python:review_state == 'clearance_requested'" /> |
---|
64 | <input type="submit" class="standalone" |
---|
65 | name="reject_clearance_button" |
---|
66 | value="Reject Clearance" |
---|
67 | id="reject_clearance_button" |
---|
68 | tal:condition="python:review_state == 'cleared_and_validated'" /> |
---|
69 | </form> |
---|
70 | <div id="ajax_psm" style="display:none"> |
---|
71 | ajax feedback |
---|
72 | </div> |
---|
73 | </metal:block> |
---|
74 | </metal:block> |
---|
75 | </tal:block> |
---|