Changeset 483 for WAeUP_SRP/trunk
- Timestamp:
- 5 Sep 2006, 20:49:31 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actionicons.xml
r466 r483 47 47 title="Edit online" priority="100" 48 48 icon_expr="actionicon_edit_online.png"/> 49 <action-icon category="object" action_id="apply_admission" 50 title="Apply for PUME" priority="100" 51 icon_expr="bell.png"/> 49 52 <action-icon category="folder" action_id="portlets" 50 53 title="Manage portlets" priority="270" -
WAeUP_SRP/trunk/profiles/default/layouts/student_application.xml
r482 r483 14 14 <property name="label">Batch</property> 15 15 <property name="label_edit">Batch</property> 16 <property name="readonly_layout_modes"/> 16 <property name="readonly_layout_modes"> 17 <element value="edit"/> 18 </property> 17 19 <property name="hidden_layout_modes"/> 18 20 <property name="hidden_readonly_layout_modes"/> … … 256 258 <property 257 259 name="help">Upload passport photograph with red background</property> 258 <property name="readonly_layout_modes"> 259 <element value="edit"/> 260 </property> 260 <property name="readonly_layout_modes"/> 261 261 <property name="hidden_layout_modes"/> 262 262 <property name="hidden_readonly_layout_modes"/> … … 321 321 <row> 322 322 <cell name="app_ac_prefix"/> 323 </row> 324 <row> 323 325 <cell name="app_ac_batch_no"/> 326 </row> 327 <row> 324 328 <cell name="app_ac_pin"/> 325 329 </row> -
WAeUP_SRP/trunk/profiles/default/layouts/student_application_fe.xml
r482 r483 14 14 <property name="label">Batch</property> 15 15 <property name="label_edit">Batch</property> 16 <property name="readonly_layout_modes"/> 16 <property name="readonly_layout_modes"> 17 <element value="edit"/> 18 </property> 17 19 <property name="hidden_layout_modes"/> 18 20 <property name="hidden_readonly_layout_modes"/> … … 192 194 name="help">Upload passport photograph with red background</property> 193 195 <property name="readonly_layout_modes"/> 194 <property name="hidden_layout_modes"> 195 <element value="create"/> 196 </property> 196 <property name="hidden_layout_modes"/> 197 197 <property name="hidden_readonly_layout_modes"/> 198 198 <property name="size_max">204800</property> … … 208 208 <row> 209 209 <cell name="app_ac_prefix"/> 210 </row> 211 <row> 210 212 <cell name="app_ac_batch_no"/> 213 </row> 214 <row> 211 215 <cell name="app_ac_pin"/> 212 216 </row> -
WAeUP_SRP/trunk/profiles/default/types/Student.xml
r446 r483 34 34 <alias from="(Default)" to="academics_contents"/> 35 35 <alias from="view" to="academics_contents"/> 36 <action title=" View" action_id="view" category="object"36 <action title="Standard View" action_id="view" category="object" 37 37 condition_expr="" 38 38 url_expr="string:${object_url}/academics_contents" visible="True"> -
WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml
r478 r483 36 36 <permission value="View"/> 37 37 </action> 38 <action title="Apply for PUME 38 <action title="Apply for PUME" action_id="apply_admission" category="object" 39 39 condition_expr="" url_expr="string:${object/absolute_url}/apply_admission" 40 40 visible="True"> -
WAeUP_SRP/trunk/skins/waeup_student/application_form.pt
r479 r483 12 12 <metal:block fill-slot="main"> 13 13 <tal:block 14 tal:define="rendered python:context.getContent().renderEdit( 14 tal:define="rendered_pin python:context.getContent().renderEdit( 15 layout_id='pin', 16 layout_mode='edit', 17 ); 18 rendered_main python:context.getContent().renderEdit( 15 19 layout_id='student_application_fe', 16 20 layout_mode='edit', 17 21 );"> 18 <tal:block tal:content="structure rendered" /> 22 <tal:block tal:content="structure rendered_pin" /> 23 <tal:block tal:content="structure rendered_main" /> 19 24 </tal:block> 20 25 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_student/application_pin_form.pt
r478 r483 1 <tal:block define="rendered_main options/rendered; 1 <tal:block define="rendered_pin options/renderes_pin 2 rendered_main options/rendered_main; 2 3 portal_status_message options/psm; 3 4 data_storage options/ds; … … 15 16 <metal:block fill-slot="main"> 16 17 <h1>Apply for the Post University Matriculation Examination! </h1> 18 <div tal:replace="structure rendered_pin" /> 17 19 <div tal:replace="structure rendered_main" /> 18 20 <p>Instructions :</p> 19 21 <ul> 20 <li>Buy an Appli iication Scratch Card.</li>22 <li>Buy an Application Scratch Card.</li> 21 23 <li>Enter your JAMB registration number and the Application PIN above.</li> 22 24 <li>Upload your passport picture.</li> -
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r482 r483 40 40 if context.portal_workflow.getInfoFor(student,'review_state',None) == "application_pin_entered": 41 41 student.content_status_modify(workflow_action="apply_for_admission") 42 is_valid, ds = doc.validate(request=REQUEST, 43 proxy=context, 42 is_valid, ds = doc.validate(request=REQUEST, 43 proxy=context, 44 44 layout_id = "student_application_fe", 45 45 layout_mode = 'edit', 46 46 use_session=True) 47 47 48 48 action = '/application_form' 49 49 50 50 if is_valid: 51 51 comments = REQUEST.get('comments') … … 53 53 if cpsdocument_edit_and_view_button is not None: 54 54 action = '' 55 psm = ' passport image uploaded'55 psm = 'You successfully uploaded your passport image.' 56 56 args = {} 57 57 action = "/view" … … 61 61 else: 62 62 args = {} 63 psm = " Application applied waiting for results"63 psm = "You successfully applied for admission." 64 64 action = "/view" 65 65 else: 66 66 is_valid, ds = doc.validate(request=REQUEST, proxy=context, cluster=cluster, 67 67 use_session=True) 68 68 69 69 if action is None: 70 70 ti = doc.getTypeInfo() 71 71 action = ti.queryMethodID('edit', 'cpsdocument_edit_form') 72 72 action = '/' + action 73 73 74 74 if is_valid: 75 75 comments = REQUEST.get('comments') … … 82 82 psm = 'psm_content_error' 83 83 args = getFormUidUrlArg(REQUEST) 84 84 85 85 args['portal_status_message'] = psm 86 86 url = context.absolute_url() + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.