Changeset 483


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

stylistic modifications

Location:
WAeUP_SRP/trunk
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/actionicons.xml

    r466 r483  
    4747              title="Edit online" priority="100"
    4848              icon_expr="actionicon_edit_online.png"/>
     49 <action-icon category="object" action_id="apply_admission"
     50              title="Apply for PUME" priority="100"
     51              icon_expr="bell.png"/>             
    4952 <action-icon category="folder" action_id="portlets"
    5053              title="Manage portlets" priority="270"
  • WAeUP_SRP/trunk/profiles/default/layouts/student_application.xml

    r482 r483  
    1414  <property name="label">Batch</property>
    1515  <property name="label_edit">Batch</property>
    16   <property name="readonly_layout_modes"/>
     16  <property name="readonly_layout_modes">
     17   <element value="edit"/>
     18  </property>
    1719  <property name="hidden_layout_modes"/>
    1820  <property name="hidden_readonly_layout_modes"/>
     
    256258  <property
    257259     name="help">Upload passport photograph with red background</property>
    258   <property name="readonly_layout_modes">
    259    <element value="edit"/>
    260   </property>
     260  <property name="readonly_layout_modes"/>
    261261  <property name="hidden_layout_modes"/>
    262262  <property name="hidden_readonly_layout_modes"/>
     
    321321  <row>
    322322   <cell name="app_ac_prefix"/>
     323  </row>
     324  <row>
    323325   <cell name="app_ac_batch_no"/>
     326  </row>
     327  <row>
    324328   <cell name="app_ac_pin"/>
    325329  </row>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_application_fe.xml

    r482 r483  
    1414  <property name="label">Batch</property>
    1515  <property name="label_edit">Batch</property>
    16   <property name="readonly_layout_modes"/>
     16  <property name="readonly_layout_modes">
     17   <element value="edit"/>
     18  </property>
    1719  <property name="hidden_layout_modes"/>
    1820  <property name="hidden_readonly_layout_modes"/>
     
    192194     name="help">Upload passport photograph with red background</property>
    193195  <property name="readonly_layout_modes"/>
    194   <property name="hidden_layout_modes">
    195    <element value="create"/>
    196   </property>
     196  <property name="hidden_layout_modes"/>
    197197  <property name="hidden_readonly_layout_modes"/>
    198198  <property name="size_max">204800</property>
     
    208208  <row>
    209209   <cell name="app_ac_prefix"/>
     210  </row>
     211  <row>
    210212   <cell name="app_ac_batch_no"/>
     213  </row>
     214  <row>
    211215   <cell name="app_ac_pin"/>
    212216  </row>
  • WAeUP_SRP/trunk/profiles/default/types/Student.xml

    r446 r483  
    3434 <alias from="(Default)" to="academics_contents"/>
    3535 <alias from="view" to="academics_contents"/>
    36  <action title="View" action_id="view" category="object"
     36 <action title="Standard View" action_id="view" category="object"
    3737    condition_expr=""
    3838    url_expr="string:${object_url}/academics_contents" visible="True">
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r478 r483  
    3636  <permission value="View"/>
    3737 </action>
    38  <action title="Apply for PUME " action_id="apply_admission" category="object"
     38 <action title="Apply for PUME" action_id="apply_admission" category="object"
    3939    condition_expr="" url_expr="string:${object/absolute_url}/apply_admission"
    4040    visible="True">
  • 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.