Changeset 893 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
19 Nov 2006, 06:27:31 (18 years ago)
Author:
Henrik Bettermann
Message:

Acknowledegement checking included
was completely removed ?!

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r891 r893  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=REQUEST
     7##parameters=REQUEST, acknowledge=None
    88##title=
    99# $Id$
     
    2020clear_and_validate_button = REQUEST.has_key('clear_and_validate_button')
    2121reject_clearance_button = REQUEST.has_key('reject_clearance_button')
     22
    2223# Until ajax posts directly to its own script...
    2324##if 'ajax_edit' in REQUEST.form:
     
    4849        psm = "Content changed!"
    4950    elif cpsdocument_edit_and_view_button:
    50         wftool.doActionFor(info['clear'],'close')
    51         wftool.doActionFor(info['student'],'request_clearance',dest_container=1)
    52         psm = "You successfully requested clearance!"
     51        if acknowledge:
     52            wftool.doActionFor(info['clear'],'close')
     53            wftool.doActionFor(info['student'],'request_clearance',dest_container=1)
     54            psm = "You successfully requested clearance!"
     55        else:
     56            psm = "You must tick the acknowledgement check box before submission!"
    5357    elif clear_and_validate_button:
    5458        wftool.doActionFor(info['student'],'clear_and_validate')
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt

    r891 r893  
    7272  <!--  isStudent -->
    7373  <tal:block condition="context/isStudent">
     74 
     75     <div tal:condition="python:info['review_state'] == 'clearance_pin_entered'">
     76        <input type="checkbox" value="True" name="acknowledge" />     &nbsp;&nbsp; 
     77
     78        I hereby acknowledge by ticking this check box
     79        that, if it is discovered at any time that I do not possess any of the
     80        qualifications which I claim to have obtained, I will be expelled from the
     81        University and shall not be re-admitted for the same or any other programme,
     82        even if I have upgraded my previous qualifications or possess additional
     83        qualifications.   
     84    </div>
     85    <br />
     86 
     87 
    7488    <input type="submit" class="standalone"
    7589           name="cpsdocument_edit_button"
Note: See TracChangeset for help on using the changeset viewer.