Changeset 1294 for WAeUP_SRP/trunk


Ignore:
Timestamp:
15 Jan 2007, 09:02:01 (18 years ago)
Author:
Henrik Bettermann
Message:

payments view shows correct button

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;">
    115        <a href=""
    126           tal:attributes="href string:${context/aq_parent/absolute_url}">
     
    1610        <h3>
    1711          <span tal:condition="not:is_student">
    18             <span tal:content="info/student_name" />:
     12            <span tal:content="s_name" />:
    1913          </span>
    2014          <span tal:condition="is_student">
     
    2519        <br />
    2620      </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">
    2825
    2926        <table class="contentListing" width="100%">
     
    3128              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    3229            <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}">
    3431                <strong tal:content="row/title" /></a>
    3532            </td>
     
    3936        <div>
    4037       
    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">
    4240         <input type="submit" name="epayment"
    4341                class="context"
     
    4644        </form> 
    4745
    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>         
    4953       
    5054       
     55        </div>       
    5156      </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  
    3434    if context.portal_type == 'PaymentsFolder':
    3535        return context.payments_view()
     36    if context.portal_type == 'Payment':
     37        return context.waeup_document_view()       
    3638    students_url = "%s/campus/students" % (context.portal_url())
    3739    id = str(member)
Note: See TracChangeset for help on using the changeset viewer.