Changeset 1294 for WAeUP_SRP/trunk/skins
- Timestamp:
- 15 Jan 2007, 09:02:01 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt
r1286 r1294 1 <metal:html tal:define="info context/getPaymentsFolderInfo; 2 is_student context/isStudent; 3 rows info/payments" 4 > 5 <span tal:condition="not: info"> 6 <span tal:content="here/illegal_view" /> 7 </span> 8 <metal:block tal:condition="info"> 9 <metal:body use-macro="here/waeup_content_master/macros/master"> 10 <metal:block fill-slot="header"> 1 <metal:body use-macro="here/waeup_content_master/macros/master"> 2 <metal:block fill-slot="header" 3 tal:define="is_student context/isStudent; 4 s_name context/getStudentNameInContext;"> 11 5 <a href="" 12 6 tal:attributes="href string:${context/aq_parent/absolute_url}"> … … 16 10 <h3> 17 11 <span tal:condition="not:is_student"> 18 <span tal:content=" info/student_name" />:12 <span tal:content="s_name" />: 19 13 </span> 20 14 <span tal:condition="is_student"> … … 25 19 <br /> 26 20 </metal:block> 27 <metal:main fill-slot="main"> 21 <metal:main fill-slot="main" 22 tal:define="info context/getPaymentsFolderInfo; 23 rows info/payments; 24 review_state context/getStudentReviewState"> 28 25 29 26 <table class="contentListing" width="100%"> … … 31 28 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 32 29 <td> 33 <a href="view" tal:attributes="href string:${context/absolute_url}/${row/id} /waeup_document_view">30 <a href="view" tal:attributes="href string:${context/absolute_url}/${row/id}"> 34 31 <strong tal:content="row/title" /></a> 35 32 </td> … … 39 36 <div> 40 37 41 <form tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group"> 38 <form tal:condition="python:review_state == 'cleared_and_validated'" 39 tal:attributes="action string: ${context/absolute_url}/pay_online" method="post" class="group"> 42 40 <input type="submit" name="epayment" 43 41 class="context" … … 46 44 </form> 47 45 48 </div> 46 <form tal:condition="python:review_state == 'returning'" 47 tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group"> 48 <input type="submit" name="epayment" 49 class="context" 50 value="Pay School Fee by Scratch Card" 51 /> 52 </form> 49 53 50 54 55 </div> 51 56 </metal:main> 52 </metal:body> 53 </metal:block> 54 </metal:html> 57 </metal:body> -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r1283 r1294 34 34 if context.portal_type == 'PaymentsFolder': 35 35 return context.payments_view() 36 if context.portal_type == 'Payment': 37 return context.waeup_document_view() 36 38 students_url = "%s/campus/students" % (context.portal_url()) 37 39 id = str(member)
Note: See TracChangeset for help on using the changeset viewer.