Changeset 483 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
5 Sep 2006, 20:49:31 (18 years ago)
Author:
Henrik Bettermann
Message:

stylistic modifications

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/application_form.pt

    r479 r483  
    1212  <metal:block fill-slot="main">
    1313      <tal:block
    14           tal:define="rendered python:context.getContent().renderEdit(
     14          tal:define="rendered_pin python:context.getContent().renderEdit(
     15                layout_id='pin',
     16                layout_mode='edit',
     17                );
     18                rendered_main python:context.getContent().renderEdit(
    1519                layout_id='student_application_fe',
    1620                layout_mode='edit',
    1721                );">
    18       <tal:block tal:content="structure rendered" />
     22      <tal:block tal:content="structure rendered_pin" />
     23      <tal:block tal:content="structure rendered_main" />
    1924      </tal:block> 
    2025  </metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/application_pin_form.pt

    r478 r483  
    1 <tal:block define="rendered_main options/rendered;
     1<tal:block define="rendered_pin options/renderes_pin
     2                   rendered_main options/rendered_main;
    23                   portal_status_message options/psm;
    34                   data_storage options/ds;
     
    1516      <metal:block fill-slot="main">
    1617        <h1>Apply for the Post University Matriculation Examination! </h1>
     18        <div tal:replace="structure rendered_pin" />
    1719        <div tal:replace="structure rendered_main" />
    1820          <p>Instructions :</p>
    1921          <ul>
    20             <li>Buy an Appliiication Scratch Card.</li>
     22            <li>Buy an Application Scratch Card.</li>
    2123            <li>Enter your JAMB registration number and the Application PIN above.</li>
    2224            <li>Upload your passport picture.</li>
  • WAeUP_SRP/trunk/skins/waeup_student/student_edit.py

    r482 r483  
    4040    if context.portal_workflow.getInfoFor(student,'review_state',None) == "application_pin_entered":
    4141        student.content_status_modify(workflow_action="apply_for_admission")
    42         is_valid, ds = doc.validate(request=REQUEST, 
    43                                     proxy=context, 
     42        is_valid, ds = doc.validate(request=REQUEST,
     43                                    proxy=context,
    4444                                    layout_id = "student_application_fe",
    4545                                    layout_mode = 'edit',
    4646                                    use_session=True)
    47        
     47
    4848        action = '/application_form'
    49        
     49
    5050        if is_valid:
    5151            comments = REQUEST.get('comments')
     
    5353            if cpsdocument_edit_and_view_button is not None:
    5454                action = ''
    55             psm = 'passport image uploaded'
     55            psm = 'You successfully uploaded your passport image.'
    5656            args = {}
    5757            action = "/view"
     
    6161    else:
    6262        args = {}
    63         psm = "Application applied waiting for results"
     63        psm = "You successfully applied for admission."
    6464        action = "/view"
    6565else:
    6666    is_valid, ds = doc.validate(request=REQUEST, proxy=context, cluster=cluster,
    6767                                use_session=True)
    68    
     68
    6969    if action is None:
    7070        ti = doc.getTypeInfo()
    7171        action = ti.queryMethodID('edit', 'cpsdocument_edit_form')
    7272        action = '/' + action
    73    
     73
    7474    if is_valid:
    7575        comments = REQUEST.get('comments')
     
    8282        psm = 'psm_content_error'
    8383        args = getFormUidUrlArg(REQUEST)
    84    
     84
    8585args['portal_status_message'] = psm
    8686url = context.absolute_url() + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.