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

provide 'transition admit' button

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.