Changeset 3747 for WAeUP_SRP


Ignore:
Timestamp:
31 Oct 2008, 06:50:48 (16 years ago)
Author:
Henrik Bettermann
Message:

provide 'transition admit' button

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r3738 r3747  
    188188  <exit-transition transition_id="pay_school_fee"/>
    189189  <exit-transition transition_id="graduate"/>
     190  <exit-transition transition_id="admit"/>
    190191  <permission-map name="Delete objects" acquired="False">
    191192   <permission-role>Manager</permission-role>
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py

    r3666 r3747  
    117117info['transition_return_allowed'] = info['review_state'] in ('school_fee_paid','courses_validated') and info['is_sectionofficer'] # and current_level > 100
    118118info['transition_pay_school_fee_allowed'] = info['review_state'] == 'returning' and info['is_sectionofficer']
     119info['transition_admit_allowed'] = info['review_state'] == 'returning' and info['is_sectionofficer']
    119120
    120121return info
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r3692 r3747  
    127127          <font color='red'>Attention: This low-level method does not change the study course and/or payment objects! They must be edited separately.</font>
    128128        </form>             
     129       
     130        <form action="" method="post" class="group"
     131              tal:condition="info/transition_admit_allowed"
     132              tal:attributes="action string:${context/absolute_url}/changeRegState">
     133          <input type="submit" class="context" value="Execute Transition 'admit'" />
     134          <input type="hidden" name="transition"
     135                 tal:attributes="value string:admit"
     136                 /> &nbsp; <br /><br />
     137          <font color='red'>Attention: This low-level method does not change the study course and/or payment objects! They must be edited separately.</font>
     138        </form>             
    129139   
    130140   
Note: See TracChangeset for help on using the changeset viewer.