Changeset 3736


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

implement gown hiring

Location:
WAeUP_SRP/trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/CHANGES.txt

    r3735 r3736  
    9898- do not cache action portlet
    9999- allow graduate transition for more states
     100
     1011.18 (2008-10-26)
     102-----------------
     103- implement gown hiring
  • WAeUP_SRP/trunk/profiles/default/layouts.xml

    r3689 r3736  
    114114  <object name="upload" meta_type="CPS Layout"/>
    115115  <object name="waeup_common" meta_type="CPS Layout"/>
     116  <object name="student_gown" meta_type="CPS Layout"/>
    116117 
    117118</object>
  • WAeUP_SRP/trunk/profiles/default/vocabularies/payment_categories.xml

    r3689 r3736  
    1111    <item key="schoolfee" msgid="">School Fee</item>
    1212    <item key="transfer" msgid="">Transfer</item>
     13    <item key="gown" msgid="">Gown Hire</item>
    1314</object>
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r3735 r3736  
    222222  <exit-transition transition_id="create_content"/>
    223223  <exit-transition transition_id="enter_application_pin"/>
    224   <exit-transition transition_id="pume_fail"/>
    225   <exit-transition transition_id="pume_pass"/>
    226   <exit-transition transition_id="reject_admission"/>
    227224  <exit-transition transition_id="return"/>
    228225  <exit-transition transition_id="deactivate"/>
  • 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.