Ignore:
Timestamp:
28 Oct 2007, 20:58:41 (17 years ago)
Author:
Henrik Bettermann
Message:

rebuild getNextInfo.py (was completely wrong)
fix makeStudentData
and other changes

Location:
WAeUP_SRP/base/skins/waeup_epayment
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py

    r2461 r2466  
    6464info['next_session'] = next_info['next_session_id']
    6565info['next_session_str'] = next_info['next_session_str']
    66 info['payment_method'] = "done"
    67 if next_info['next_transition'] is None and next_info['reasons']:
    68     info['payment_method'] = "not_possible"
    69     info['reasons'] = next_info['reasons']
    70 elif review_state == 'cleared_and_validated':
     66info['payment_method'] = ""
     67info['reasons'] = next_info['reasons']
     68
     69if review_state == 'cleared_and_validated':
    7170    info['payment_method'] = "online_payment"
    7271elif review_state == 'returning' and info['next_session'] != session:
    7372    info['payment_method'] = "sc_payment"
    74 
    7573info['prod_id'] = '61'
    76 
    7774
    7875info['student_name'] = s_brain.name
  • WAeUP_SRP/base/skins/waeup_epayment/payments_view.pt

    r2464 r2466  
    7575                   />
    7676          </form>         
    77           <div tal:condition="python: info.get('payment_method') == 'not_possible'">
    78             You are not able to pay your schoolfee because: <br />
    79             <ul>
    80               <span tal:repeat="reason info/reasons" tal:omit-tag="">
    81                 <li tal:content="reason" />
    82               </span>
    83             </ul>
     77          <div tal:condition="info/reasons">
     78            <font color="red" tal:content="info/reasons"></font>
     79            <br /><br />
    8480          </div>
    8581        </div>       
Note: See TracChangeset for help on using the changeset viewer.