Changeset 2316 for WAeUP_SRP/base/skins


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/base/skins/waeup_student
Files:
3 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 = """
Note: See TracChangeset for help on using the changeset viewer.