Ignore:
Timestamp:
3 Mar 2011, 13:54:24 (14 years ago)
Author:
Henrik Bettermann
Message:

Don't show bed coordinates in Okene if bed not paid.

Location:
WAeUP_SRP/trunk/skins/waeup_fceokene
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_fceokene/accommodation_record_slip.pt

    r5786 r5792  
    3333              <span class="dlabel">Bed</span>:
    3434             </td>
    35              <td>
     35             <td tal:condition="python:info_acco['Booking Status']=='maintenance_fee_paid'">
    3636                <span tal:content="python:context.getFormattedBed(info_acco['Bed'])"></span>
     37             </td>
     38             <td tal:condition="python:info_acco['Booking Status']!='maintenance_fee_paid'">
     39                <em>visible after payment</em>
    3740             </td>
    3841         </tr>
     
    7073             </td>
    7174         </tr>                     
    72      
     75
    7376         <tr>
    7477             <td width="180px" valign="top">
  • WAeUP_SRP/trunk/skins/waeup_fceokene/book_accommodation.py

    r5781 r5792  
    7070                                 )
    7171elif psm == 'valid':
    72     pin = str(ds.get('acco_res_sc_pin'))
    7372    code,bed = context.portal_accommodation.searchAndReserveBed(student_id,
    7473                                                                "%s" % (info['student_status']),
     
    9594hall_info = context.waeup_tool.getHallInfo(bed)
    9695data={}
    97 data['acco_res_sc_pin'] = ds['acco_res_sc_pin']
     96data['acco_res_sc_pin'] = str(ds.get('acco_res_sc_pin',''))
    9897data['acco_maint_code'] = hall_info.get('maintenance_code')
    9998data['acco_maint_fee'] = hall_info.get('maintenance_fee')
Note: See TracChangeset for help on using the changeset viewer.