Changeset 2108 for WAeUP_SRP/trunk


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
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/application.xml

    r2107 r2108  
    548548    <property name="css_class_expr">string:row</property>
    549549  </widget>
    550   <widget name="course3" meta_type="String Widget">
     550  <widget name="course3" meta_type="Select Widget">
    551551    <property name="title">3rd Choice Course of Study</property>
    552552    <property name="fields">
     
    565565    </property>
    566566    <property name="hidden_readonly_layout_modes"/>
     567    <property name="vocabulary">cos</property>
    567568    <property name="css_class_expr">string:row</property>
    568569  </widget>
     
    613614  <row>
    614615   <cell name="status" ncols="2"/>
    615   </row> 
     616  </row>
    616617  <row>
    617618   <cell name="application_date" ncols="2"/>
    618   </row> 
     619  </row>
    619620  <row>
    620621   <cell name="screening_date" ncols="2"/>
    621   </row> 
     622  </row>
    622623 </table>
    623624</object>
  • WAeUP_SRP/trunk/profiles/default/vocabularies.xml

    r2098 r2108  
    3939 <object name="verdicts" meta_type="CPS Vocabulary"/>
    4040 <object name="global_roles" meta_type="CPS Vocabulary"/>
     41 <object name="cos" meta_type="CPS Vocabulary"/>
    4142 </object>
  • 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.