Changeset 2103
- Timestamp:
- 16 Aug 2007, 12:16:32 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
r2102 r2103 29 29 apply_pume = "apply" in request.keys() 30 30 edit = "edit" in request.keys() 31 slip = "slip" in request.keys() 31 32 submitted = False 32 33 mode = request.get('mode','') … … 54 55 if not create and pin != object['pin']: 55 56 return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 56 57 if slip: 58 mode = "view_slip" 57 59 res,psm,ds = lt.renderLayout(layout_id= 'application', 58 60 schema_id= 'application', … … 64 66 ) 65 67 66 set_trace() 68 if slip: 69 return context.apply_pume_slip(rendered = res, 70 psm = "", 71 #psm = "%s, %s" % (psm,ds), 72 mode = mode, 73 ds = ds, 74 ) 75 67 76 if psm == 'invalid': 68 77 return context.apply_pume_form(rendered = res, -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_form.pt
r2101 r2103 18 18 tal:attributes="value ds/reg_no|nothing" 19 19 tal:condition="ds/reg_no|nothing"/> 20 <input type="hidden" name="pin" 21 tal:attributes="value ds/pin|nothing" 22 tal:condition="ds/pin|nothing"/> 20 23 <div tal:replace="structure rendered_main" /> 21 24 -
WAeUP_SRP/trunk/skins/waeup_student/layout_apply_pume_view.pt
r2101 r2103 1 1 <metal:block use-macro="here/layout_apply_pume_create/macros/default_table" /> 2 3 here Application Slip Button 2 <form action="" id="editForm" method="post" 3 enctype="multipart/form-data" class="workflow" 4 tal:attributes="action string:${context/absolute_url}/apply_pume" 5 > 6 <input type="hidden" name="reg_no" 7 tal:attributes="value ds/reg_no|nothing" 8 tal:condition="ds/reg_no|nothing"/> 9 <input type="hidden" name="pin" 10 tal:attributes="value ds/pin|nothing" 11 tal:condition="ds/pin|nothing"/> 12 <input type="submit" class="standalone" name="slip" 13 value="Print application slip" 14 /> 15 </form>
Note: See TracChangeset for help on using the changeset viewer.