Ignore:
Timestamp:
16 Oct 2006, 22:30:16 (18 years ago)
Author:
joachim
Message:

fixed several bugs in the Apply for PUME Process:
jamb_reg_no had wrong widget
applying with a different PIN a second time led to an error.

the new fields:
appl_email, appl_mobile are set to hidden in laymode create
could not set the fields to required, cause that broke the applyForm.
layout: student_application.xml still has them set to required.

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt

    r672 r710  
    2727              err python:ds.getError(wid);
    2828              err_mapping python:ds.getErrorMapping(wid);
    29               is_required python: widget.is_required and creation and ('create' not in widget.readonly_layout_modes);
     29              is_required python: widget.is_required;
    3030              tooltip_id python:wid + '_help';
    3131              widget_css_class cell/widget_css_class|nothing;
  • WAeUP_SRP/trunk/skins/waeup_student/passport_entry_view.pt

    r672 r710  
    1 <metal:html tal:define="info context/getStudentInfo">
     1<metal:html tal:define="info context/getStudentInfo;
     2            rendered_main python:info['app_doc'].renderEdit(
     3                                                        layout_mode='edit',
     4                                                        proxy=info['app'],
     5                                                        no_form = True,
     6                                                        schema_id = 'student_application',
     7                                                        layout_id='student_application_fe',
     8            )">
    29  <metal:body use-macro="here/main_template/macros/master">
    310    <metal:main fill-slot="main">
     
    1219        <h3>Upload your Passport Picture!</h3>
    1320        <br />
    14         <span tal:omit-tag=""
    15               tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
    16               layout_mode='edit',
    17               layout_id='student_application_fe',
    18               )"
    19               />
     21        <span tal:omit-tag="" tal:replace="structure rendered_main"/>
    2022      </span>
    2123    </metal:main>
  • WAeUP_SRP/trunk/skins/waeup_student/student_edit.py

    r659 r710  
    4848                                    use_session=True)
    4949        action = "/passport_entry_view"
    50         if app_doc.passport is not None:
    51             psm = 'You successfully uploaded your passport image.'
    52             args = {'apply_button': 'Apply',}
     50        if is_valid:
     51            if app_doc.passport is not None:
     52                psm = 'You successfully uploaded your passport image.'
     53                args = {'apply_button': 'Apply',}
     54            else:
     55                psm = "You didn't upload a passport image."
     56                args = {}
    5357        else:
    54             psm = "You didn't upload a passport image."
    55             args = {}
     58            psm = 'psm_content_error'
     59            args = getFormUidUrlArg(REQUEST)
    5660    elif 'apply_admission' not in REQUEST.form:
    5761        is_valid, ds = app_doc.validate(request=REQUEST,
Note: See TracChangeset for help on using the changeset viewer.