Changeset 2100 for WAeUP_SRP/trunk
- Timestamp:
- 16 Aug 2007, 07:05:02 (17 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r2099 r2100 693 693 'label': 'Reference Field'}, 694 694 ) 695 catalog = "portal_pumeresults" #the catalog to search for jamb_reg_no695 #catalog = "portal_pumeresults" #the catalog to search for jamb_reg_no 696 696 reference = "" 697 697 digits = 8 … … 702 702 """Validate datastructure and update datamodel.""" 703 703 valid = CPSStringWidget.validate(self, datastructure, **kw) 704 jamb_nr_catalog = getattr(self,self.catalog)704 reg_no_catalog = getattr(self,self.catalog) 705 705 widget_id = self.getWidgetId() 706 706 value = datastructure[widget_id].upper() … … 712 712 mode = "edit" 713 713 if not valid: 714 err = 'Invalid number'714 err = 'Invalid registration number' 715 715 elif self.reference == '': 716 716 #s = getStudentByRegNo(self,value) 717 pume = jamb_nr_catalog(jamb_reg_no = value)717 pume = reg_no_catalog(jamb_reg_no = value) 718 718 if len(pume) < 1: 719 err = 'No student record with this registration number .'719 err = 'No student record with this registration number' 720 720 else: 721 721 datastructure['pume'] = pume[0] … … 723 723 pass 724 724 elif self.reference != '' and self.catalog == "applicants_catalog": 725 res = jamb_nr_catalog.searchResults({"%s" % self.reference: value})725 res = reg_no_catalog.searchResults({"%s" % self.reference: value}) 726 726 if len(res) != 1: 727 err = 'No record with this registration number .'727 err = 'No record with this registration number' 728 728 else: 729 729 datastructure['record'] = res[0] -
WAeUP_SRP/trunk/profiles/default/layouts/application.xml
r2099 r2100 181 181 <element value="eng_score"/> 182 182 </property> 183 <property name="label">English :</property>184 <property name="label_edit">English :</property>183 <property name="label">English</property> 184 <property name="label_edit">English</property> 185 185 <property name="description"></property> 186 186 <property name="help"></property> … … 222 222 <element value="subj1score"/> 223 223 </property> 224 <property name="label"> :</property>225 <property name="label_edit"> :</property>224 <property name="label"></property> 225 <property name="label_edit"></property> 226 226 <property name="description"></property> 227 227 <property name="help"></property> … … 263 263 <element value="subj2score"/> 264 264 </property> 265 <property name="label"> :</property>266 <property name="label_edit"> :</property>265 <property name="label"></property> 266 <property name="label_edit"></property> 267 267 <property name="description"></property> 268 268 <property name="help"></property> … … 304 304 <element value="subj3score"/> 305 305 </property> 306 <property name="label"> :</property>307 <property name="label_edit"> :</property>306 <property name="label"></property> 307 <property name="label_edit"></property> 308 308 <property name="description"></property> 309 309 <property name="help"></property> -
WAeUP_SRP/trunk/profiles/default/vocabularies/jamb_subjects.xml
r2098 r2100 15 15 <item key="ECO" msgid="">Economics</item> 16 16 <item key="FRE" msgid="">French</item> 17 <item key="GEO" msgid="">Geograph ie</item>18 <item key="GOV" msgid="">Gover ment</item>17 <item key="GEO" msgid="">Geography</item> 18 <item key="GOV" msgid="">Government</item> 19 19 <item key="HIS" msgid="">History</item> 20 20 <item key="IRK" msgid="">Islamic Rel. Knowledge</item> … … 23 23 <item key="H/E" msgid="">Home Economics</item> 24 24 <item key="LIT" msgid="">Literature In English</item> 25 <item key="MUS" msgid="">Musi k</item>25 <item key="MUS" msgid="">Music</item> 26 26 <item key="PHY" msgid="">Physics</item> 27 27 <item key="YOR" msgid="">Yoruba Language</item> -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_form.pt
r2098 r2100 9 9 <metal:block use-macro="here/main_template/macros/master"> 10 10 <metal:block fill-slot="main"> 11 <h3>App pply for the Post University Matriculation Examination! </h3>11 <h3>Apply for the Post University Matriculation Examination! </h3> 12 12 <br /> 13 13 <form action="" id="editForm" method="post" … … 24 24 value="" 25 25 /> 26 I confirm that Passport Photograph uploaded on this form is a true picture of me26 I confirm that the Passport Photograph uploaded on this form is a true picture of me. 27 27 </div> 28 28 29 29 <input type="submit" class="standalone" 30 30 name="edit" 31 value=" Edit"31 value="Save" 32 32 tal:condition="python: mode == 'edit'" /> 33 33 <input type="submit" class="standalone" name="apply" 34 value=" apply for Pume"34 value="Save & Apply for PUME" 35 35 tal:condition="python: mode == 'edit'" 36 36 /> … … 46 46 <li>Enter your JAMB Registration Number and the Application PIN above.</li> 47 47 <li>Upload your passport picture.</li> 48 <li>Apply for P ume.</li>48 <li>Apply for PUME.</li> 49 49 </ul> 50 50 <ul tal:condition="python: mode == 'view'"> -
WAeUP_SRP/trunk/skins/waeup_student/layout_apply_pume_edit.pt
r2098 r2100 7 7 proceed options/proceed|nothing; 8 8 "> 9 <table width="100%" cellpadding="2" cellspacing="2" summary="Form layout" 9 <table width="100%" cellpadding="2" cellspacing="2" summary="Form layout" border=1 10 10 tal:condition="layout/rows"> 11 11 <tr tal:repeat="row layout/rows" valign="top"> 12 <td tal:repeat="cell row" 13 tal:attributes="colspan cell/ncols"> 12 13 <span tal:repeat="cell row"> 14 14 <tal:block define="widget cell/widget; 15 15 wid widget/getWidgetId; … … 20 20 widget_css_class cell/widget_css_class|nothing; 21 21 css_class python:test(err, 'row error','row')"> 22 < divtal:attributes="class widget_css_class;22 <span tal:attributes="class widget_css_class; 23 23 id python:widget.getHtmlWidgetId()+'_widget'; 24 24 "> 25 <div class="label" tal:condition="widget/label_edit" 26 tal:attributes="class python:test(is_required, 'label required', 27 'label')"> 28 <label i18n:translate="" tal:condition="widget/is_i18n" 29 tal:content="widget/label_edit" 30 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 31 <label tal:condition="not:widget/is_i18n" 32 tal:content="widget/label_edit" 25 26 <td tal:condition="widget/label_edit"> 27 <div tal:attributes="class python:test(is_required, 'label required','label')"> 28 <label tal:content="widget/label_edit" 33 29 tal:attributes="for cell/widget_input_area_id|nothing;">label</label> 34 30 </div> 35 <button type="button" class="tooltipControl" 36 tal:condition="widget/help" 37 tal:attributes="onclick python:'toggleElementVisibility(\'%s\')' % tooltip_id;"> ? </button> 38 <div class="field"> 39 <div tal:replace="structure cell/widget_rendered"/> 40 </div> 41 <div class="tooltipArea" style="visibility: hidden;" 42 tal:condition="widget/help" 43 tal:attributes="id tooltip_id; 44 onclick python:'showElement(false, \'%s\')' % tooltip_id;"> 45 <tal:block i18n:translate="" tal:condition="widget/is_i18n" 46 tal:content="widget/help">i18_key-help_for_this_field</tal:block> 47 <tal:block tal:condition="not:widget/is_i18n" 48 tal:content="widget/help">This is the help for this field</tal:block> 49 </div> 31 </td> 32 <td> 33 <label tal:replace="structure cell/widget_rendered"/> 34 </td> 50 35 <tal:block condition="err"> 51 36 <tal:block define="msg python:cpsmcat(err, mapping=err_mapping)"> … … 54 39 </tal:block> 55 40 </tal:block> 56 </ div>41 </span> 57 42 </tal:block> 58 </td> 43 </span> 44 59 45 </tr> 60 46 </table> 61 </metal:block> 47 48 </metal:block>
Note: See TracChangeset for help on using the changeset viewer.