Ignore:
Timestamp:
26 Oct 2008, 11:07:26 (16 years ago)
Author:
Henrik Bettermann
Message:

implement gown hiring

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
2 added
2 edited

Legend:

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

    r3709 r3736  
    7373info['prod_id'] = '61'
    7474
     75try:
     76    level = int(student_record.level)
     77    end_level = int(student_record.end_level)
     78    if level >= end_level:
     79        info['gown'] = True
     80except:
     81    pass
     82
    7583# end customization
    7684
  • WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt

    r3481 r3736  
    8484                   tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"
    8585                   />
    86           </form>         
     86          </form>   
     87         
     88          <form tal:condition="info/gown|nothing"
     89                tal:attributes="action string: ${context/absolute_url}/request_gown" method="post" class="group">
     90            <input type="submit" name="epayment"
     91                   class="context"
     92                   value="Initiate Gown Hiring"
     93                   />
     94          </form>           
     95         
     96               
    8797          <div tal:condition="info/reasons">
    8898            <font color="red" tal:content="info/reasons"></font>
Note: See TracChangeset for help on using the changeset viewer.