Changeset 2316


Ignore:
Timestamp:
5 Oct 2007, 10:16:23 (17 years ago)
Author:
Henrik Bettermann
Message:

Some changes to make PRE-NCE application work.

mail2student.py: senders name and email address changed

Location:
WAeUP_SRP
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/apply_admission.py

    r2310 r2316  
    6666elif traverse_subpath and traverse_subpath[0] == "cest":
    6767    layout = "application_cest"
    68     application_type = "pce"   
     68    application_type = "pce"
    6969else:
    7070    return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    71    
    72        
     71
     72
    7373lt = context.portal_layouts
     74
     75pin = request.form.get('pin','')
     76
     77
    7478reg_no = request.get('widget__reg_no','').upper()
    7579if not reg_no:
    7680    reg_no = request.form.get('reg_no','').upper()
    77 pin = request.form.get('pin','')
     81
     82
     83
    7884object = {}
    7985if reg_no:
     
    193199        logger.info('%s/%s edits application record' % (member,reg_no))
    194200    psm = ""
    195     #set_trace()
    196201    if without_reg_no:
    197202        object['reg_no'] = reg_no
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt

    r2310 r2316  
    44           application_type options/application_type;
    55           mode options/mode;
    6            expired python:True;
     6           expired python:False;
    77           show_submit options/show_submit|nothing;
    88           "
     
    1515          <h3 tal:condition="python:application_type=='pde'">Apply for Post DE Screening Test(2007/2008)! </h3>
    1616          <h3 tal:condition="python:application_type=='prence'">Apply for Pre-NCE Programme (2007/2008)! </h3>
    17           <h3 tal:condition="python:application_type=='pce'">Apply for NCE Screening (2007/2008)! </h3>
     17          <h3 tal:condition="python:application_type=='pce'">Apply for PCE Screening (2007/2008)! </h3>
    1818          <h3 tal:condition="python:application_type=='cest'">Apply for Common Entrance Screening Test (2007/2008)! </h3>
    1919        </span>
     
    3434                 tal:attributes="value ds/pin|nothing"
    3535                 tal:condition="ds/pin|nothing"/>
    36 
     36          <input type="hidden" name="application_type"
     37                 tal:attributes="value application_type|nothing"
     38                 tal:condition="application_type|nothing"/>
     39                 
    3740          <div tal:replace="structure rendered_main" />
    3841         
     
    5154                 name="edit"
    5255                 value="Save"
    53                  tal:condition="python: mode == 'edit'" />
     56                 tal:condition="python: mode == 'edit' and not expired" />
    5457          <input type="submit" class="standalone" name="apply"
    5558                 value="Final Submit"
    56                  tal:condition="python: show_submit and mode == 'edit'"
     59                 tal:condition="python: show_submit and mode == 'edit' and not expired"
    5760                 />
    5861          <input type="submit"
  • WAeUP_SRP/base/skins/waeup_student/mail2student.py

    r2296 r2316  
    1717
    1818d = {}
    19 d['co_name'] = co_name
    20 d['co_email'] = co_email
     19#d['co_name'] = co_name
     20#d['co_email'] = co_email
     21d['co_name'] = 'CRPU Uniben'
     22d['co_email'] = prop.email_from_address
    2123d['student_email'] = student_email
    2224d['probtype'] = probtype
    2325d['commt'] = commt
    24 
    25 #prop.email_from_address should be used for To:
    2626
    2727message = """
  • WAeUP_SRP/fceokene/profiles/default/layouts/application_manage.xml

    r2312 r2316  
    2222    <property name="readonly_layout_modes"/>
    2323    <property name="hidden_layout_modes">
    24       <element value="edit"/>
    25     </property>
    26     <property name="hidden_readonly_layout_modes"/>
     24    </property>
     25    <property name="hidden_readonly_layout_modes"/>
     26    <property name="view_format">%d/%m/%Y</property>
     27    <property name="time_setting">False</property>
    2728    <property name="css_class_expr">string:row</property>
    2829  </widget>
     
    621622  </row>
    622623  <row>
     624   <cell name="date_of_birth" ncols="2"/>
     625  </row> 
     626  <row>
    623627   <cell name="email" ncols="2"/>
    624628  </row>
  • WAeUP_SRP/fceokene/profiles/default/layouts/application_prence.xml

    r2312 r2316  
    3939    </property>
    4040    <property name="label">Date of Birth</property>
    41     <property name="label_edit">Date of Birth</property>
    42     <property name="description"></property>
    43     <property name="help"></property>
    44     <property name="is_i18n">False</property>
    45     <property name="widget_mode_expr"></property>
    46     <property name="readonly_layout_modes"/>
    47     <property name="hidden_layout_modes">
    48       <element value="create"/>
    49     </property>
     41    <property name="label_edit">Date of Birth (dd/mm/yyyy)</property>
     42    <property name="description"></property>
     43    <property name="help"></property>
     44    <property name="is_i18n">False</property>
     45    <property name="widget_mode_expr"></property>
     46    <property name="readonly_layout_modes"/>
     47    <property name="hidden_layout_modes">
     48      <element value="create"/>
     49    </property>
     50    <property name="view_format">%d/%m/%Y</property>
     51    <property name="time_setting">False</property>
    5052    <property name="hidden_readonly_layout_modes"/>
    5153    <property name="css_class_expr">string:row</property>
  • WAeUP_SRP/fceokene/profiles/default/layouts/application_pume.xml

    r2312 r2316  
    2424      <element value="edit"/>
    2525    </property>
     26    <property name="view_format">%d/%m/%Y</property>
     27    <property name="time_setting">False</property>   
    2628    <property name="hidden_readonly_layout_modes"/>
    2729    <property name="css_class_expr">string:row</property>
Note: See TracChangeset for help on using the changeset viewer.