Changeset 710 for WAeUP_SRP/trunk/skins
- Timestamp:
- 16 Oct 2006, 22:30:16 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_pins/getBatchInfo.py
r709 r710 32 32 jno = item['student'] 33 33 res = context.portal_catalog(SearchableText=jno,portal_type='StudentApplication') 34 if len(res) > 1:34 if len(res) > 0: 35 35 item['student_url'] = "%s/%s" % (context.portal_url(),res[0].relative_path) 36 36 else: -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_edit.pt
r672 r710 27 27 err python:ds.getError(wid); 28 28 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; 30 30 tooltip_id python:wid + '_help'; 31 31 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 )"> 2 9 <metal:body use-macro="here/main_template/macros/master"> 3 10 <metal:main fill-slot="main"> … … 12 19 <h3>Upload your Passport Picture!</h3> 13 20 <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"/> 20 22 </span> 21 23 </metal:main> -
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r659 r710 48 48 use_session=True) 49 49 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 = {} 53 57 else: 54 psm = "You didn't upload a passport image."55 args = {}58 psm = 'psm_content_error' 59 args = getFormUidUrlArg(REQUEST) 56 60 elif 'apply_admission' not in REQUEST.form: 57 61 is_valid, ds = app_doc.validate(request=REQUEST,
Note: See TracChangeset for help on using the changeset viewer.