Ignore:
Timestamp:
15 Nov 2007, 22:07:14 (17 years ago)
Author:
Henrik Bettermann
Message:

further modifications for session change

Location:
WAeUP_SRP/base/skins/waeup_student
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/application_view.pt

    r2573 r2670  
    77      <span tal:condition="info">
    88           
    9         <div style="text-align: right" tal:define="review_state info/review_state"
    10              tal:condition="python:review_state not in ('created','application_pin_entered',)">
    11         <a href="" target="slip" tal:attributes="href string:application_slip"
    12             onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')">
    13             <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" />
    14             Application Slip
    15         </a>
    16        
    17           </div>
     9
    1810        <a href=""
    1911           tal:attributes="href string:${here/academicsParent}">
  • WAeUP_SRP/base/skins/waeup_student/apply_admission.py

    r2598 r2670  
    6868        if not object['passport']:
    6969                object['passport'] = ''
    70         if object['status'] and ('submitted' in object['status'] or 'admitted' in object['status']):
     70        if object['status'] and ('submitted' in object['status'] or 'admitted' in object['status'] or 'created' in object['status']):
    7171            submitted = True
    7272
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt

    r2586 r2670  
    7373          <metal:block tal:condition="python:info['status'] == 'created'">
    7474              <br />
    75                 <strong>You that you have been provisionally admitted into University of Benin. Your member record has been created.
     75                <strong>You have been provisionally admitted into University of Benin. Your member record has been created.
    7676                        Please purchase a second Application Scratch Card and proceed to 'Check Admission'.</strong>
    7777              <br />  <br /> 
  • WAeUP_SRP/base/skins/waeup_student/clearance_edit.py

    r2491 r2670  
    7474    #from Products.zdb import set_trace
    7575    #set_trace()
    76     info['clear_doc'].edit(mapping = {'cleared_date': current,})
     76    clear_doc.edit(mapping = {'cleared_date': current,})
    7777    wftool.doActionFor(info['student'],'clear_and_validate')
     78   
     79    if info['per_review_state'] != 'opened':
     80        wftool.doActionFor(info['per'],'open')
     81   
     82    per_doc = info['per'].getContent()
     83    per_doc.edit(mapping = {'firstname': clear_doc.firstname, 'middlename': clear_doc.middlename, 'lastname': clear_doc.lastname,})
     84   
     85   
     86   
    7887    psm = "Clearance and eligibility record is validated and student is cleared!"
    7988elif clear_and_validate_button and info['review_state'] == "cleared_and_validated":
     
    103112            req_found = [scan for scan in required_scans if scan in files]
    104113            birth_found = "age_dec" in files or "birth_certificate" in files
    105             if not req_found or not birth_found:
    106                 logger.info('%s requested clearance with documents missing' % (student_id))
    107                 psm = "You have not uploaded all necessary documents to request clearance!"
     114            #if not req_found or not birth_found:
     115            #    logger.info('%s requested clearance with documents missing' % (student_id))
     116            #    psm = "You have not uploaded all necessary documents to request clearance!"
     117            if not clear_doc.firstname or not clear_doc.lastname:
     118                logger.info('%s requested clearance without confirming name' % (student_id))
     119                psm = "Please fill the name fields! First and last name are required. "           
    108120            else:
    109121                logger.info('%s requested clearance' % (student_id))
    110                 info['clear_doc'].edit(mapping = {'request_date': current,})
     122                clear_doc.edit(mapping = {'request_date': current,})
    111123                wftool.doActionFor(info['clear'],'close')
    112124                wftool.doActionFor(info['student'],'request_clearance',dest_container=1)
  • WAeUP_SRP/base/skins/waeup_student/getClearanceInfo.py

    r1871 r2670  
    5353info['clear_doc'] = student.clearance.getContent()
    5454info['clear_review_state'] = wf.getInfoFor(student.clearance,'review_state',None)
     55info['per'] = student.personal
     56info['per_review_state'] = wf.getInfoFor(student.personal,'review_state',None)
    5557if info['review_state'] in ('clearance_requested', 'cleared_and_validated',):
    5658    info['penalty'] = info['penalty'] and\
Note: See TracChangeset for help on using the changeset viewer.