- Timestamp:
- 8 Nov 2006, 23:01:05 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r794 r796 466 466 break 467 467 if ok == 0: 468 err = 'PIN already used '468 err = 'PIN already used.' 469 469 break 470 470 if ok >= 1: … … 477 477 student = getStudentByRegNo(self,ref) 478 478 if student is None: 479 err = "Student not Found in validate SC"479 err = "Student not found." 480 480 break 481 481 s_id = student.getId() 482 482 if ok == 2: 483 err = "You a lready used this PIN please login"483 err = "You are a portal member, please login with your Student Id and Password." 484 484 break 485 485 student.getContent().makeStudentMember(s_id,password=pin[4:]) -
WAeUP_SRP/trunk/profiles/default/layouts/student_clearance_fe.xml
r794 r796 55 55 </property> 56 56 <property name="hidden_readonly_layout_modes"/> 57 <property name="render_format">radio</property> 57 <property name="render_format">radio</property> 58 58 </widget> 59 59 <widget name="age_dec" meta_type="Image Widget"> … … 237 237 </property> 238 238 <property name="hidden_readonly_layout_modes"/> 239 <property name="render_format">radio</property> 239 <property name="render_format">radio</property> 240 240 </widget> 241 241 <widget name="entry_date" meta_type="Date Widget"> … … 246 246 <property name="label">Entry Date</property> 247 247 <property name="label_edit">Entry Date</property> 248 <property name="readonly_layout_modes"/> 248 <property name="readonly_layout_modes"> 249 <element value="edit"/> 250 </property> 249 251 <property name="hidden_layout_modes"> 250 252 <element value="create"/> … … 259 261 <property name="label">Entry Session</property> 260 262 <property name="label_edit">Entry Session</property> 261 <property name="readonly_layout_modes"/> 263 <property name="readonly_layout_modes"> 264 <element value="edit"/> 265 </property> 262 266 <property name="hidden_layout_modes"> 263 267 <element value="create"/> … … 289 293 <property name="label">Former Matric/RegNo</property> 290 294 <property name="label_edit">Former Matric/RegNo</property> 291 <property name="readonly_layout_modes"/> 295 <property name="readonly_layout_modes"> 296 </property> 292 297 <property name="hidden_layout_modes"> 293 298 <element value="create"/> … … 308 313 </property> 309 314 <property name="hidden_readonly_layout_modes"/> 310 <property name="render_format">radio</property> 315 <property name="render_format">radio</property> 311 316 </widget> 312 317 <widget name="fst_sit_date" meta_type="Date Widget"> … … 414 419 <property name="label">Higher Qualification Grade</property> 415 420 <property name="label_edit">Higher Qualification Grade</property> 416 <property name="description">Higher Qualification Data</property>417 421 <property name="readonly_layout_modes"/> 418 422 <property name="hidden_layout_modes"> … … 485 489 <property name="label">Higher Qualification</property> 486 490 <property name="label_edit">Higher Qualification</property> 491 <property name="description">Higher Qualification Data</property> 487 492 <property name="readonly_layout_modes"/> 488 493 <property name="hidden_layout_modes"> … … 564 569 <property name="label">Matriculation Number</property> 565 570 <property name="label_edit">Matriculation Number</property> 566 <property name="readonly_layout_modes"/> 571 <property name="readonly_layout_modes"> 572 <element value="edit"/> 573 </property> 567 574 <property name="hidden_layout_modes"> 568 575 <element value="create"/> … … 632 639 </property> 633 640 <property name="hidden_readonly_layout_modes"/> 634 <property name="render_format">radio</property> 641 <property name="render_format">radio</property> 635 642 </widget> 636 643 <widget name="scd_sit_date" meta_type="Date Widget"> … … 747 754 </property> 748 755 <property name="hidden_readonly_layout_modes"/> 749 <property name="render_format">radio</property> 756 <property name="render_format">radio</property> 750 757 </widget> 751 758 <widget name="uniben" meta_type="Boolean Widget"> … … 761 768 </property> 762 769 <property name="hidden_readonly_layout_modes"/> 763 <property name="render_format">radio</property> 770 <property name="render_format">radio</property> 764 771 </widget> 765 772 <table> -
WAeUP_SRP/trunk/profiles/default/vocabularies/searchable_student_states.xml
r786 r796 11 11 <item key="pume_passed" msgid="">pume passed</item> 12 12 <item key="pume_failed" msgid="">pume failed</item> 13 <item key="deferred" msgid=""> deferred</item>13 <item key="deferred" msgid="">admission deferred</item> 14 14 <item key="admission_rejected" msgid="">admission rejected</item> 15 15 <item key="finally_rejected" msgid="">finally rejected</item> -
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r788 r796 54 54 #student.content_status_modify(workflow_action="enter_clearance_pin") 55 55 wftool.doActionFor(info['app'],'open',dest_container=info['app']) 56 if info['pume'] is not None: 57 wftool.doActionFor(info['pume'],'close',dest_container=info['pume']) 56 58 da = {} 57 59 pin = request.get('pin') … … 90 92 if info['review_state'] == "application_pin_entered": 91 93 return response.redirect("%s/application_edit" % student.absolute_url()) 94 elif info['review_state'] == "admitted": 95 return response.redirect("%s/admission_accept_form" % student.absolute_url()) 92 96 elif info['review_state'] == "clearance_pin_entered": 93 97 return response.redirect("%s/clearance_edit" % student.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_student/application_edit.py
r794 r796 33 33 clear_doc = info['clear_doc'] 34 34 state = context.getStudentInfo()['review_state'] 35 is_valid, ds = app_doc.validate(request=REQUEST, 35 is_valid, ds = app_doc.validate(request=REQUEST, 36 36 schema_id = 'student_application', 37 37 layout_id = 'student_application_fe', … … 43 43 action = "/application_edit_form" 44 44 base_url = app.absolute_url() 45 46 if app_doc.passport is not None: 47 args['proceed'] = 'Continue' 48 45 49 if cpsdocument_edit_button: 46 50 if is_valid: 47 51 if app_doc.passport is not None: 48 args['proceed'] = 'Continue to Clearance' 49 psm = 'You successfully uploaded your passport image.' 52 args['portal_status_message'] = 'You successfully uploaded your passport picture.' 50 53 else: 51 psm = "You didn't upload a passport image."54 args['portal_status_message'] = "You didn't upload a passport picture." 52 55 elif proceed: 53 56 if is_valid: … … 55 58 base_url = clear.absolute_url() 56 59 else: 57 psm = 'psm_content_error' 58 args['portal_status_message'] = psm 59 url = base_url + action + '?' + urlencode(args) 60 args['portal_status_message'] = 'psm_content_error' 61 if args: 62 url = base_url + action + '?' + urlencode(args) 63 else: 64 url = base_url + action 60 65 REQUEST.RESPONSE.redirect(url) -
WAeUP_SRP/trunk/skins/waeup_student/application_edit_form.pt
r794 r796 7 7 use_session=True, no_form=True)"> 8 8 <metal:body use-macro="here/waeup_content_master/macros/master"> 9 10 <metal:block fill-slot="header"> 11 <a href="" 12 tal:attributes="href string:${here/academicsParent}"> 13 <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> 14 Up one level 15 </a> 16 <h3>Update your Application Data!</h3> 17 <br /> 18 </metal:block> 19 9 20 <metal:main fill-slot="main"> 10 21 <span tal:condition="not: info"> 11 22 <metal:block use-macro="here/error_not_found/macros/not_found" /> 12 23 </span> 13 <span tal:condition="info" 14 tal:define="review_state info/review_state"> 15 <h3>Upload or Change your Passport Picture!</h3> 16 <br /> 24 <span tal:condition="info"> 17 25 <span tal:omit-tag="" tal:replace="structure rendered_main"/> 18 26 </span> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt
r789 r796 41 41 42 42 <metal:block fill-slot="header"> 43 <metal:block define-slot="header"> 44 <h3> Edit your clearance Data</h3> 45 </metal:block> 43 <a href="" 44 tal:attributes="href string:${here/academicsParent}"> 45 <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> 46 Up one level 47 </a> 48 <h3>Fill Your Clearance Form!</h3> 49 <br /> 46 50 </metal:block> 47 48 51 49 52 <metal:block fill-slot="main"> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_pin_form.pt
r788 r796 14 14 </metal:block> 15 15 <metal:block fill-slot="main"> 16 <h3> Request Clearance! </h3>16 <h3>Start Clearance! </h3> 17 17 <br /> 18 18 <div tal:replace="structure rendered_main" /> 19 <p>Instructions :</p>20 <ul>21 <li>Buy a Clearance Scratch Card.</li>22 <li>Apply</li>23 </ul>24 19 </metal:block> 25 20 <metal:block fill-slot="sub"> -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r787 r796 124 124 row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link) 125 125 row['review_state'] = so.review_state 126 row['display'] = so.review_state in ('opened','closed','public',) or\127 so.portal_type in ("StudentAccommodation","StudentStudyCourse")126 row['display'] = so.review_state in ('opened','closed','public',) #or\ 127 #so.portal_type in ("StudentAccommodation","StudentStudyCourse") 128 128 items.append(row) 129 129 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_student/layout_clearance_view.pt
r790 r796 5 5 dm options/datastructure/getDataModel; 6 6 widgets python:context.getRenderedWidgets(layout); 7 fields python:('jamb_reg_no', 8 'app_ac_pin', 9 'app_ac_date', 10 'app_email', 11 'app_mobile', 12 'jamb_lastname', 13 'jamb_sex', 14 'jamb_first_cos', 15 'jamb_second_cos',)" 7 fields python:('')" 16 8 > 17 9 <table cellpadding="2" cellspacing="2" summary="layout"> … … 40 32 </tal:block> 41 33 </tr> 42 <tr>43 <tal:block define="cell widgets/passport;44 widget cell/widget"45 >46 <div tal:attributes="class cell/widget_css_class|nothing;47 id python:widget.getHtmlWidgetId()+'_widget';">48 <td valign="top">49 <tal:block condition="widget/label">50 <span class="label"51 tal:content="widget/label">label</span>:52 </tal:block>53 </td>54 <td>55 <img src="img" tal:replace="structure cell/widget_rendered">56 </td>57 </div>58 </tal:block>59 </tr>60 34 </table> 61 35 </metal:block> -
WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt
r786 r796 62 62 63 63 <span tal:condition="python:path('info/review_state')=='deferred'"> 64 <tr><td class="stopped"> Deferred</td></tr>64 <tr><td class="stopped">Admission deferred</td></tr> 65 65 </span> 66 66 <span tal:condition="python:path('info/review_state')!='deferred'"> 67 <tr><td> Deferred</td></tr>67 <tr><td>Admission deferred</td></tr> 68 68 </span> 69 69 -
WAeUP_SRP/trunk/skins/waeup_student/request_clearance.py
r790 r796 25 25 layout_mode='create', 26 26 formaction = "request_clearance", 27 button = " Request Clearance",27 button = "Start", 28 28 ) 29 29 if psm == 'invalid':
Note: See TracChangeset for help on using the changeset viewer.