Changeset 1426 for WAeUP_SRP


Ignore:
Timestamp:
15 Feb 2007, 20:59:20 (18 years ago)
Author:
Henrik Bettermann
Message:

jamb_reg_no added

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1415 r1426  
    161161        email = dict.get('email')
    162162        level = dict.get('level')
     163        jamb_reg_no = dict.get('jamb_reg_no')
    163164        study_course = dict.get('study_course')
    164165        self.portal_workflow.doActionFor(student_obj,wfaction)
     
    179180        dc['matric_no'] = matric_no
    180181        da['app_email'] = dp['email'] = email
     182        da['jamb_reg_no'] = jamb_reg_no
    181183        dp['firstname'] = dict.get('firstname')
    182184        dp['middlename'] = dict.get('middlename')
     
    198200        catd['entry_mode']= entry_mode
    199201        catd['email'] = email
     202        catd['jamb_reg_no'] = jamb_reg_no
    200203        catd['matric_no'] = matric_no
    201204        catd['name'] = "%(firstname)s %(middlename)s %(lastname)s" % dp
  • WAeUP_SRP/trunk/profiles/default/layouts/student_create.xml

    r1420 r1426  
    1313   <element value="email"/>
    1414  </property>
    15   <property name="is_required">True</property>
     15  <property name="is_required">False</property>
    1616  <property name="label">Email</property>
    1717  <property name="label_edit">Email</property>
     
    6868  <property name="vocabulary">courselevel</property>
    6969 </widget>
     70 <widget name="jamb_reg_no" meta_type="String Widget">
     71  <property name="title">JAMB Registration No</property>
     72  <property name="fields">
     73   <element value="jamb_reg_no"/>
     74  </property>
     75  <property name="label">JAMB Registration No</property>
     76  <property name="label_edit">JAMB Registration No</property>
     77  <property name="readonly_layout_modes"/>
     78  <property name="hidden_layout_modes"/>
     79  <property name="hidden_readonly_layout_modes"/>
     80  <property name="display_width">10</property>
     81 </widget>
    7082 <widget name="matric_no" meta_type="String Widget">
    7183  <property name="title">Matriculation No</property>
     
    141153  </row>
    142154  <row>
     155   <cell name="jamb_reg_no"/>
     156  </row> 
     157  <row>
    143158   <cell name="study_course"/>
    144159  </row>
  • WAeUP_SRP/trunk/profiles/default/schemas/student_create.xml

    r1415 r1426  
    88 <field name="level" meta_type="CPS String Field"/>
    99 <field name="matric_no" meta_type="CPS String Field"/>
     10 <field name="jamb_reg_no" meta_type="CPS String Field"/>
    1011 <field name="middlename" meta_type="CPS String Field"/>
    1112 <field name="sex" meta_type="CPS Boolean Field"/>
  • WAeUP_SRP/trunk/skins/waeup_accommodation/book_reserved_bed.py

    r1412 r1426  
    1313acco_cat = context.portal_accommodation
    1414import logging
    15 logger = logging.getLogger('Accommodation')
     15logger = logging.getLogger('Accommodation.BookReservedBed')
    1616
    1717mode = 'create'
    1818validate = REQUEST.has_key("cpsdocument_edit_button") and\
    19            REQUEST.get("cpsdocument_edit_button").startswith('reserve')
     19           REQUEST.get("cpsdocument_edit_button").startswith('Reserve')
    2020d = {}
    2121rendered,psm,ds = lt.renderLayout(layout_id= 'acco_bed_booking',
     
    3434                                 mode = mode,
    3535                                 formaction = "book_reserved_bed",
    36                                  button = "reserve bed",
     36                                 button = "Reserve Bed",
    3737                                 ds = ds,
    3838                                 )
     
    4242                                 mode = mode,
    4343                                 formaction = "book_reserved_bed",
    44                                  button = "reserve bed",
     44                                 button = "Reserve Bed",
    4545                                 ds = ds,
    4646                                 )
     
    6363        break
    6464    bed_brain = res[0]
    65     already = acco_cat(student=sid) 
     65    already = acco_cat(student=sid)
    6666    if already:
    6767        psm = "Student %s already reserved bed %s" % (sid, already[0].bed)
     
    8383                                 ds = ds,
    8484                                 formaction = "book_reserved_bed",
    85                                  button = "reserve bed",
     85                                 button = "Reserve Bed",
    8686                                 )
    8787acco_cat.modifyRecord(bed = bid, student = sid)
     
    9191                                 mode = mode,
    9292                                 formaction = "book_reserved_bed",
    93                                  button = "next reservation",
     93                                 button = "Next Reservation",
    9494                                 ds = ds,
    9595                                 )
  • WAeUP_SRP/trunk/skins/waeup_student/add_student_form.pt

    r1422 r1426  
    4242            </tr>       
    4343            <tr>
    44               <td>Matric No:</td>
     44              <td>Matriculation No:</td>
    4545              <td tal:content="student/matric_no" />
    46             </tr>               
     46            </tr>       
     47            <tr>
     48              <td>JAMB Registration No:</td>
     49              <td tal:content="student/jamb_reg_no" />
     50            </tr>                           
    4751            <tr>
    4852              <td>Study Course:</td>
Note: See TracChangeset for help on using the changeset viewer.