Changeset 2108 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
16 Aug 2007, 18:43:20 (17 years ago)
Author:
Henrik Bettermann
Message:

form shows now the correct data and correct mode

select widget for course3 added

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

Legend:

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

    r2106 r2108  
    105105        data['application_date'] = current
    106106        data['status'] = "submitted"
    107         context.applicants_catalog.modifyRecord(**data)           
     107        context.applicants_catalog.modifyRecord(**data)
     108        res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
     109                                schema_id= 'application',
     110                                layout_mode = mode,
     111                                context=context,
     112                                mapping=validate and REQUEST,
     113                                ob=object,
     114                                commit = False,
     115                                )                     
    108116elif create:
    109117    if submitted:
     
    126134    psm = "Content changed"
    127135
    128 res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
    129                              schema_id= 'application',
    130                              layout_mode = mode,
    131                              context=context,
    132                              mapping=validate and REQUEST,
    133                              ob=object,
    134                              commit = False,
    135                             )
     136
    136137   
    137138return context.apply_pume_form(rendered = res,
  • WAeUP_SRP/trunk/skins/waeup_student/apply_pume_form.pt

    r2105 r2108  
    99    <metal:block use-macro="here/main_template/macros/master">
    1010      <metal:block fill-slot="main">
    11         <h3>Apply for the Post University Matriculation Examination! </h3>
     11        <h3 tal:condition="python:not mode=='view'">Apply for the Post University Matriculation Examination! </h3>
     12        <h3 tal:condition="python:mode=='view'">Your PUME Application Record</h3>
    1213        <br />
    1314        <form action="" id="editForm" method="post"
     
    2122                 tal:attributes="value ds/pin|nothing"
    2223                 tal:condition="ds/pin|nothing"/>
     24
    2325          <div tal:replace="structure rendered_main" />
    2426         
  • WAeUP_SRP/trunk/skins/waeup_student/apply_pume_slip.pt

    r2104 r2108  
    44           jamb options/jamb/getContent|nothing;
    55           mode options/mode;
     6           name python:ds['lastname'];
    67           "
    78           >
     
    910    <metal:block use-macro="here/slip_template/macros/master">
    1011      <metal:block fill-slot="main">
    11         <h3>Apply for the Post University Matriculation Examination! </h3>
     12        <h3>PUME Application Record of <span tal:replace="name" /></h3>
    1213        <br />
    1314        <div tal:replace="structure rendered_main" />
Note: See TracChangeset for help on using the changeset viewer.