Changeset 426 for WAeUP_SRP/trunk


Ignore:
Timestamp:
25 Aug 2006, 22:48:52 (18 years ago)
Author:
Henrik Bettermann
Message:

schema and layout corrections, counter for student import added

Location:
WAeUP_SRP/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r423 r426  
    2525    r = random
    2626    return "%c%d" % (r.choice('ABCDEFGHKLMNPQRSTUVWXY'),r.randint(99999,1000000))
    27    
    28    
     27
     28
    2929
    3030class StudentsFolder(CPSDocument): ###(
     
    8181                continue
    8282            level = student.get('StudentLevel')
    83             try: 
     83            try:
    8484                int(level)
    8585            except:
     
    9494                sid = generateStudentId()
    9595                #self.log('Creating Faculty %(id)s = %(Title)s' % faculty)
    96                 logger.info('Creating Student with ID %(sid)s Matric_no %(matric_no)s ' % vars())
     96                logger.info('%(tr_count)s: Creating Student with ID %(sid)s Matric_no %(matric_no)s ' % vars())
    9797                students_folder.invokeFactory('Student', sid)
    9898                s = getattr(self,sid)
     
    201201        for result in results:
    202202            sid = result.get('Matnumber')
    203             if sid not in students.keys():               
     203            if sid not in students.keys():
    204204                em = 'Student with ID %(Matnumber)s not found\n' % result
    205205                logger.info(em)
     
    215215                continue
    216216            level = result.get('Level')
    217             try: 
     217            try:
    218218                int(level)
    219219            except:
     
    255255            d['import_id'] = result.get('id')
    256256            gpa = result.get('GPA').replace(',','.')
    257             d['gpa'] = float(gpa) 
     257            d['gpa'] = float(gpa)
    258258            ct.getContent().edit(mapping = d)
    259259            if tr_count > MAX_TRANS:
     
    262262            tr_count += 1
    263263        return self.students.academics_contents()
    264            
    265 ###)
    266 
    267            
     264
     265###)
     266
     267
    268268    security.declareProtected(View,"Title")
    269269    def Title(self):
  • WAeUP_SRP/trunk/profiles/default/layouts/student_clearance.xml

    r425 r426  
    5555 </widget>
    5656
    57  <widget name="entry_date" meta_type="String Widget">
     57 <widget name="entry_date" meta_type="Date Widget">
    5858  <property name="title">Entry Date</property>
    5959  <property name="fields">
     
    8181 </widget>
    8282
    83  <widget name="birthday" meta_type="DateTime Widget">
     83 <widget name="birthday" meta_type="Date Widget">
    8484  <property name="title">Day of Birth</property>
    8585  <property name="fields">
     
    283283 </widget>
    284284
    285   <widget name="alr_sit_fname" meta_type="String Widget">
     285  <widget name="alr_fname" meta_type="String Widget">
    286286  <property name="title">Fullname</property>
    287287  <property name="fields">
    288    <element value="alr_sit_fname"/>
     288   <element value="alr_fname"/>
    289289  </property>
    290290  <property name="is_required"></property>
     
    298298 </widget>
    299299
    300  <widget name="alr_sit_no" meta_type="String Widget">
     300 <widget name="alr_no" meta_type="String Widget">
    301301  <property name="title">Exam Number</property>
    302302  <property name="fields">
    303    <element value="alr_sit_no"/>
     303   <element value="alr_no"/>
    304304  </property>
    305305  <property name="is_required"></property>
     
    311311 </widget>
    312312
    313  <widget name="alr_sit_date" meta_type="Date Widget">
     313 <widget name="alr_date" meta_type="Date Widget">
    314314  <property name="title">Exam Date</property>
    315315  <property name="fields">
    316    <element value="alr_sit_date"/>
     316   <element value="alr_date"/>
    317317  </property>
    318318  <property name="is_required"></property>
     
    324324 </widget>
    325325
    326  <widget name="alr_sit_scan" meta_type="Image Widget">
     326 <widget name="alr_scan" meta_type="Image Widget">
    327327  <property name="title">Scan of Advanced Level Result</property>
    328328  <property name="fields">
    329    <element value="alr_sit_scan"/>
     329   <element value="alr_scan"/>
    330330  </property>
    331331  <property name="is_required"></property>
     
    774774 <table>
    775775  <row>
     776   <cell name="jamb_reg_no"/>
     777  </row>
     778  <row>
     779   <cell name="matric_no"/>
     780  </row>
     781  <row>
    776782   <cell name="clr_ac_pin"/>
    777783  </row>
    778784  <row>
    779    <cell name="jamb_reg_nr"/>
    780   </row>
    781   <row>
    782785   <cell name="entry_date"/>
    783786  </row>
     
    828831  </row>
    829832  <row>
    830    <cell name="alr_sit_fname"/>
    831   </row>
    832   <row>
    833    <cell name="alr_sit_fname"/>
    834   </row>
    835   <row>
    836    <cell name="alr_sit_no"/>
    837   </row>
    838   <row>
    839    <cell name="alr_sit_date"/>
    840   </row>
    841   <row>
    842    <cell name="alr_sit_scan"/>
     833   <cell name="alr_fname"/>
     834  </row>
     835  <row>
     836   <cell name="alr_fname"/>
     837  </row>
     838  <row>
     839   <cell name="alr_no"/>
     840  </row>
     841  <row>
     842   <cell name="alr_date"/>
     843  </row>
     844  <row>
     845   <cell name="alr_scan"/>
    843846  </row>
    844847  <row>
     
    926929   <cell name="acknow"/>
    927930  </row>
    928   <row>
    929    <cell name="jamb_reg_no"/>
    930   </row>
    931   <row>
    932    <cell name="matric_no"/>
    933   </row>
    934931 </table>
    935932
  • WAeUP_SRP/trunk/profiles/default/layouts/student_personal.xml

    r424 r426  
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
    9  <widget name="campus_address" meta_type="String Widget">
    10   <property name="title">Campus Address</property>
    11   <property name="fields">
    12    <element value="campus_address"/>
    13   </property>
    14   <property name="label">Campus Address</property>
    15   <property name="label_edit">Campus Address</property>
    16   <property name="readonly_layout_modes"/>
    17   <property name="hidden_layout_modes"/>
    18   <property name="hidden_readonly_layout_modes"/>
    19  </widget>
    20  <widget name="disabled" meta_type="Boolean Widget">
    21   <property name="title">Disabled</property>
    22   <property name="fields">
    23    <element value="disabled"/>
    24   </property>
    25   <property name="readonly_layout_modes"/>
    26   <property name="hidden_layout_modes"/>
    27   <property name="hidden_readonly_layout_modes"/>
    28   <property name="label_false">yes</property>
    29   <property name="label_true">no</property>
    30  </widget>
     9
    3110 <widget name="firstname" meta_type="String Widget">
    3211  <property name="title">First Name</property>
     
    4120  <property name="hidden_readonly_layout_modes"/>
    4221 </widget>
     22
     23 <widget name="middlename" meta_type="String Widget">
     24  <property name="title">Middle Name</property>
     25  <property name="fields">
     26   <element value="middlename"/>
     27  </property>
     28  <property name="label">Middl Name</property>
     29  <property name="label_edit">Middle Name</property>
     30  <property name="readonly_layout_modes"/>
     31  <property name="hidden_layout_modes"/>
     32  <property name="hidden_readonly_layout_modes"/>
     33 </widget>
     34
     35 <widget name="lastname" meta_type="String Widget">
     36  <property name="title">Lastname</property>
     37  <property name="fields">
     38   <element value="lastname"/>
     39  </property>
     40  <property name="label">Lastname</property>
     41  <property name="label_edit">Lastname</property>
     42  <property name="readonly_layout_modes"/>
     43  <property name="hidden_layout_modes"/>
     44  <property name="hidden_readonly_layout_modes"/>
     45 </widget>
     46
     47  <widget name="former_surname" meta_type="String Widget">
     48  <property name="title">Former Surname</property>
     49  <property name="fields">
     50   <element value="former_surname"/>
     51  </property>
     52  <property name="label">Former Surname</property>
     53  <property name="label_edit">Former Surname</property>
     54  <property name="readonly_layout_modes"/>
     55  <property name="hidden_layout_modes"/>
     56  <property name="hidden_readonly_layout_modes"/>
     57 </widget>
     58
     59
     60 <widget name="sex" meta_type="Boolean Widget">
     61  <property name="title">Sex</property>
     62  <property name="fields">
     63   <element value="sex"/>
     64  </property>
     65  <property name="label">Sex</property>
     66  <property name="label_edit">Sex</property>
     67  <property name="readonly_layout_modes"/>
     68  <property name="hidden_layout_modes"/>
     69  <property name="hidden_readonly_layout_modes"/>
     70  <property name="label_false">male</property>
     71  <property name="label_true">female</property>
     72 </widget>
     73
     74
    4375 <widget name="for_lga" meta_type="String Widget">
    4476  <property name="title">Foreign Student Local Government Area</property>
     
    5284  <property name="hidden_readonly_layout_modes"/>
    5385 </widget>
     86
    5487 <widget name="for_state" meta_type="Select Widget">
    5588  <property name="title">Foreign Student State</property>
     
    6497  <property name="vocabulary">states</property>
    6598 </widget>
    66  <widget name="former_surname" meta_type="String Widget">
    67   <property name="title">Former Surname</property>
    68   <property name="fields">
    69    <element value="former_surname"/>
    70   </property>
    71   <property name="label">Former Surname</property>
    72   <property name="label_edit">Former Surname</property>
    73   <property name="readonly_layout_modes"/>
    74   <property name="hidden_layout_modes"/>
    75   <property name="hidden_readonly_layout_modes"/>
    76  </widget>
     99
     100 <widget name="marit_stat" meta_type="Boolean Widget">
     101  <property name="title">Marital Status</property>
     102  <property name="fields">
     103   <element value="marit_stat"/>
     104  </property>
     105  <property name="label">Marital Status</property>
     106  <property name="label_edit">Marital Status</property>
     107  <property name="readonly_layout_modes"/>
     108  <property name="hidden_layout_modes"/>
     109  <property name="hidden_readonly_layout_modes"/>
     110  <property name="label_false">single</property>
     111  <property name="label_true">married</property>
     112 </widget>
     113
     114 <widget name="religion" meta_type="Select Widget">
     115  <property name="title">Religion</property>
     116  <property name="fields">
     117   <element value="religion"/>
     118  </property>
     119  <property name="label">Religion</property>
     120  <property name="label_edit">Religion</property>
     121  <property name="readonly_layout_modes"/>
     122  <property name="hidden_layout_modes"/>
     123  <property name="hidden_readonly_layout_modes"/>
     124  <property name="vocabulary">religion</property>
     125 </widget>
     126
     127 <widget name="perm_address" meta_type="String Widget">
     128  <property name="title">Permanent Address</property>
     129  <property name="fields">
     130   <element value="perm_address"/>
     131  </property>
     132  <property name="label">Permanent Address</property>
     133  <property name="label_edit">Permanent Address</property>
     134  <property name="readonly_layout_modes"/>
     135  <property name="hidden_layout_modes"/>
     136  <property name="hidden_readonly_layout_modes"/>
     137 </widget>
     138
     139 <widget name="perm_city" meta_type="String Widget">
     140  <property name="title">City</property>
     141  <property name="fields">
     142   <element value="perm_city"/>
     143  </property>
     144  <property name="label">City</property>
     145  <property name="label_edit">City</property>
     146  <property name="readonly_layout_modes"/>
     147  <property name="hidden_layout_modes"/>
     148  <property name="hidden_readonly_layout_modes"/>
     149 </widget>
     150
     151 <widget name="campus_address" meta_type="String Widget">
     152  <property name="title">Campus Address</property>
     153  <property name="fields">
     154   <element value="campus_address"/>
     155  </property>
     156  <property name="label">Campus Address</property>
     157  <property name="label_edit">Campus Address</property>
     158  <property name="readonly_layout_modes"/>
     159  <property name="hidden_layout_modes"/>
     160  <property name="hidden_readonly_layout_modes"/>
     161 </widget>
     162
     163 <widget name="phone" meta_type="String Widget">
     164  <property name="title">Phone</property>
     165  <property name="fields">
     166   <element value="phone"/>
     167  </property>
     168  <property name="label">Phone</property>
     169  <property name="label_edit">Phone</property>
     170  <property name="readonly_layout_modes"/>
     171  <property name="hidden_layout_modes"/>
     172  <property name="hidden_readonly_layout_modes"/>
     173 </widget>
     174
     175
     176 <widget name="next_kin_firstname" meta_type="String Widget">
     177  <property name="title">Next of Kin Firstname</property>
     178  <property name="fields">
     179   <element value="next_kin_firstname"/>
     180  </property>
     181  <property name="label">Next of Kin Firstname</property>
     182  <property name="label_edit">Next of Kin Firstname</property>
     183  <property name="readonly_layout_modes"/>
     184  <property name="hidden_layout_modes"/>
     185  <property name="hidden_readonly_layout_modes"/>
     186 </widget>
     187
     188
     189 <widget name="next_kin_middlename" meta_type="String Widget">
     190  <property name="title">Next of Kin Middlename</property>
     191  <property name="fields">
     192   <element value="next_kin_middlename"/>
     193  </property>
     194  <property name="label">Next of Kin Middlename</property>
     195  <property name="label_edit">Next of Kin Middlename</property>
     196  <property name="readonly_layout_modes"/>
     197  <property name="hidden_layout_modes"/>
     198  <property name="hidden_readonly_layout_modes"/>
     199 </widget>
     200
     201
     202 <widget name="next_kin_lastname" meta_type="String Widget">
     203  <property name="title">Next of Kin Lastname</property>
     204  <property name="fields">
     205   <element value="next_kin_lastname"/>
     206  </property>
     207  <property name="label">Next of Kin Lastname</property>
     208  <property name="label_edit">Next of Kin Lastname</property>
     209  <property name="readonly_layout_modes"/>
     210  <property name="hidden_layout_modes"/>
     211  <property name="hidden_readonly_layout_modes"/>
     212 </widget>
     213
     214
     215 <widget name="next_kin_relation" meta_type="String Widget">
     216  <property name="title">Next of Kin Relationship</property>
     217  <property name="fields">
     218   <element value="next_kin_relation"/>
     219  </property>
     220  <property name="label">Next of Kin Relationship</property>
     221  <property name="label_edit">Next of Kin Relationship</property>
     222  <property name="readonly_layout_modes"/>
     223  <property name="hidden_layout_modes"/>
     224  <property name="hidden_readonly_layout_modes"/>
     225 </widget>
     226
     227
     228 <widget name="next_kin_address" meta_type="String Widget">
     229  <property name="title">Next of Kin Address</property>
     230  <property name="fields">
     231   <element value="next_kin_address"/>
     232  </property>
     233  <property name="label">Next of Kin Address</property>
     234  <property name="label_edit">Next of Kin Address</property>
     235  <property name="readonly_layout_modes"/>
     236  <property name="hidden_layout_modes"/>
     237  <property name="hidden_readonly_layout_modes"/>
     238 </widget>
     239
     240
     241 <widget name="next_kin_city" meta_type="String Widget">
     242  <property name="title">Next of Kin City</property>
     243  <property name="fields">
     244   <element value="next_kin_city"/>
     245  </property>
     246  <property name="label">Next of Kin City</property>
     247  <property name="label_edit">Next of Kin City</property>
     248  <property name="readonly_layout_modes"/>
     249  <property name="hidden_layout_modes"/>
     250  <property name="hidden_readonly_layout_modes"/>
     251 </widget>
     252
     253
     254 <widget name="next_kin_state" meta_type="String Widget">
     255  <property name="title">Next of Kin State</property>
     256  <property name="fields">
     257   <element value="next_kin_state"/>
     258  </property>
     259  <property name="label">Next of Kin State</property>
     260  <property name="label_edit">Next of Kin State</property>
     261  <property name="readonly_layout_modes"/>
     262  <property name="hidden_layout_modes"/>
     263  <property name="hidden_readonly_layout_modes"/>
     264 </widget>
     265
     266 <widget name="next_kin_email" meta_type="String Widget">
     267  <property name="title">Next of Kin Email</property>
     268  <property name="fields">
     269   <element value="next_kin_email"/>
     270  </property>
     271  <property name="label">Next of Kin Email</property>
     272  <property name="label_edit">Next of Kin Email</property>
     273  <property name="readonly_layout_modes"/>
     274  <property name="hidden_layout_modes"/>
     275  <property name="hidden_readonly_layout_modes"/>
     276 </widget>
     277
     278 <widget name="next_kin_phone" meta_type="String Widget">
     279  <property name="title">Next of Kin Phone</property>
     280  <property name="fields">
     281   <element value="next_kin_phone"/>
     282  </property>
     283  <property name="label">Next of Kin Phone</property>
     284  <property name="label_edit">Next of Kin Phone</property>
     285  <property name="readonly_layout_modes"/>
     286  <property name="hidden_layout_modes"/>
     287  <property name="hidden_readonly_layout_modes"/>
     288 </widget>
     289
     290
     291 <widget name="sponsor_firstname" meta_type="String Widget">
     292  <property name="title">Sponsor Firstname</property>
     293  <property name="fields">
     294   <element value="sponsor_firstname"/>
     295  </property>
     296  <property name="label">Sponsor Firstname</property>
     297  <property name="label_edit">Sponsor Firstname</property>
     298  <property name="readonly_layout_modes"/>
     299  <property name="hidden_layout_modes"/>
     300  <property name="hidden_readonly_layout_modes"/>
     301 </widget>
     302
     303 <field name="sponsor_middlename" meta_type="CPS String Field"/>
     304
     305 <widget name="sponsor_middlename" meta_type="String Widget">
     306  <property name="title">Sponsor Middlename</property>
     307  <property name="fields">
     308   <element value="sponsor_middlename"/>
     309  </property>
     310  <property name="label">Sponsor Middlename</property>
     311  <property name="label_edit">Sponsor Middlename</property>
     312  <property name="readonly_layout_modes"/>
     313  <property name="hidden_layout_modes"/>
     314  <property name="hidden_readonly_layout_modes"/>
     315 </widget>
     316
     317
     318 <widget name="sponsor_lastname" meta_type="String Widget">
     319  <property name="title">Sponsor Lastname</property>
     320  <property name="fields">
     321   <element value="sponsor_lastname"/>
     322  </property>
     323  <property name="label">Sponsor Lastname</property>
     324  <property name="label_edit">Sponsor Lastname</property>
     325  <property name="readonly_layout_modes"/>
     326  <property name="hidden_layout_modes"/>
     327  <property name="hidden_readonly_layout_modes"/>
     328 </widget>
     329
     330
     331 <widget name="sponsor_address" meta_type="String Widget">
     332  <property name="title">Sponsor Address</property>
     333  <property name="fields">
     334   <element value="sponsor_address"/>
     335  </property>
     336  <property name="label">Sponsor Address</property>
     337  <property name="label_edit">Sponsor Address</property>
     338  <property name="readonly_layout_modes"/>
     339  <property name="hidden_layout_modes"/>
     340  <property name="hidden_readonly_layout_modes"/>
     341 </widget>
     342
     343
     344 <widget name="sponsor_city" meta_type="String Widget">
     345  <property name="title">Sponsor City</property>
     346  <property name="fields">
     347   <element value="sponsor_city"/>
     348  </property>
     349  <property name="label">Sponsor City</property>
     350  <property name="label_edit">Sponsor City</property>
     351  <property name="readonly_layout_modes"/>
     352  <property name="hidden_layout_modes"/>
     353  <property name="hidden_readonly_layout_modes"/>
     354 </widget>
     355
     356
     357 <widget name="sponsor_state" meta_type="String Widget">
     358  <property name="title">Sponsor State</property>
     359  <property name="fields">
     360   <element value="sponsor_state"/>
     361  </property>
     362  <property name="label">Sponsor State</property>
     363  <property name="label_edit">Sponsor State</property>
     364  <property name="readonly_layout_modes"/>
     365  <property name="hidden_layout_modes"/>
     366  <property name="hidden_readonly_layout_modes"/>
     367 </widget>
     368
     369 <widget name="sponsor_email" meta_type="String Widget">
     370  <property name="title">Sponsor Email</property>
     371  <property name="fields">
     372   <element value="sponsor_email"/>
     373  </property>
     374  <property name="label">Sponsor Email</property>
     375  <property name="label_edit">Sponsor Email</property>
     376  <property name="readonly_layout_modes"/>
     377  <property name="hidden_layout_modes"/>
     378  <property name="hidden_readonly_layout_modes"/>
     379 </widget>
     380
     381 <widget name="sponsor_phone" meta_type="String Widget">
     382  <property name="title">Sponsor Phone</property>
     383  <property name="fields">
     384   <element value="sponsor_phone"/>
     385  </property>
     386  <property name="label">Sponsor Phone</property>
     387  <property name="label_edit">Sponsor Phone</property>
     388  <property name="readonly_layout_modes"/>
     389  <property name="hidden_layout_modes"/>
     390  <property name="hidden_readonly_layout_modes"/>
     391 </widget>
     392
     393
    77394 <widget name="fst_best_lang" meta_type="String Widget">
    78395  <property name="title">First Best Language</property>
     
    86403  <property name="hidden_readonly_layout_modes"/>
    87404 </widget>
     405
     406
     407 <widget name="scd_best_lang" meta_type="String Widget">
     408  <property name="title">Second Best Language</property>
     409  <property name="fields">
     410   <element value="scd_best_lang"/>
     411  </property>
     412  <property name="label">Second Best Language</property>
     413  <property name="label_edit">Second Best Language</property>
     414  <property name="readonly_layout_modes"/>
     415  <property name="hidden_layout_modes"/>
     416  <property name="hidden_readonly_layout_modes"/>
     417 </widget>
     418
     419
     420 <widget name="mother_tongue" meta_type="String Widget">
     421  <property name="title">Mother Tongue</property>
     422  <property name="fields">
     423   <element value="mother_tongue"/>
     424  </property>
     425  <property name="label">Mother Tongue</property>
     426  <property name="label_edit">Mother Tongue</property>
     427  <property name="readonly_layout_modes"/>
     428  <property name="hidden_layout_modes"/>
     429  <property name="hidden_readonly_layout_modes"/>
     430 </widget>
     431
    88432 <widget name="hall" meta_type="String Widget">
    89433  <property name="title">Residence Hall on Campus</property>
     
    97441  <property name="hidden_readonly_layout_modes"/>
    98442 </widget>
    99  <widget name="lastname" meta_type="String Widget">
    100   <property name="title">Lastname</property>
    101   <property name="fields">
    102    <element value="lastname"/>
    103   </property>
    104   <property name="label">Lastname</property>
    105   <property name="label_edit">Lastname</property>
    106   <property name="readonly_layout_modes"/>
    107   <property name="hidden_layout_modes"/>
    108   <property name="hidden_readonly_layout_modes"/>
    109  </widget>
    110  <widget name="marit_stat" meta_type="Boolean Widget">
    111   <property name="title">Marital Status</property>
    112   <property name="fields">
    113    <element value="marit_stat"/>
    114   </property>
    115   <property name="label">Marital Status</property>
    116   <property name="label_edit">Marital Status</property>
    117   <property name="readonly_layout_modes"/>
    118   <property name="hidden_layout_modes"/>
    119   <property name="hidden_readonly_layout_modes"/>
    120   <property name="label_false">singe</property>
    121   <property name="label_true">married</property>
    122  </widget>
    123  <widget name="middlename" meta_type="String Widget">
    124   <property name="title">Middle Name</property>
    125   <property name="fields">
    126    <element value="middlename"/>
    127   </property>
    128   <property name="label">Middl Name</property>
    129   <property name="label_edit">Middle Name</property>
    130   <property name="readonly_layout_modes"/>
    131   <property name="hidden_layout_modes"/>
    132   <property name="hidden_readonly_layout_modes"/>
    133  </widget>
    134  <widget name="mother_tongue" meta_type="String Widget">
    135   <property name="title">Mother Tongue</property>
    136   <property name="fields">
    137    <element value="mother_tongue"/>
    138   </property>
    139   <property name="label">Mother Tongue</property>
    140   <property name="label_edit">Mother Tongue</property>
    141   <property name="readonly_layout_modes"/>
    142   <property name="hidden_layout_modes"/>
    143   <property name="hidden_readonly_layout_modes"/>
    144  </widget>
    145  <widget name="next_kin_address" meta_type="String Widget">
    146   <property name="title">Next of Kin Address</property>
    147   <property name="fields">
    148    <element value="next_kin_address"/>
    149   </property>
    150   <property name="label">Next of Kin Address</property>
    151   <property name="label_edit">Next of Kin Address</property>
    152   <property name="readonly_layout_modes"/>
    153   <property name="hidden_layout_modes"/>
    154   <property name="hidden_readonly_layout_modes"/>
    155  </widget>
    156  <widget name="next_kin_city" meta_type="String Widget">
    157   <property name="title">Next of Kin City</property>
    158   <property name="fields">
    159    <element value="next_kin_city"/>
    160   </property>
    161   <property name="label">Next of Kin City</property>
    162   <property name="label_edit">Next of Kin City</property>
    163   <property name="readonly_layout_modes"/>
    164   <property name="hidden_layout_modes"/>
    165   <property name="hidden_readonly_layout_modes"/>
    166  </widget>
    167  <widget name="next_kin_email" meta_type="String Widget">
    168   <property name="title">Next of Kin Email</property>
    169   <property name="fields">
    170    <element value="next_kin_email"/>
    171   </property>
    172   <property name="label">Next of Kin Email</property>
    173   <property name="label_edit">Next of Kin Email</property>
    174   <property name="readonly_layout_modes"/>
    175   <property name="hidden_layout_modes"/>
    176   <property name="hidden_readonly_layout_modes"/>
    177  </widget>
    178  <widget name="next_kin_firstname" meta_type="String Widget">
    179   <property name="title">Next of Kin Firstname</property>
    180   <property name="fields">
    181    <element value="next_kin_firstname"/>
    182   </property>
    183   <property name="label">Next of Kin Firstname</property>
    184   <property name="label_edit">Next of Kin Firstname</property>
    185   <property name="readonly_layout_modes"/>
    186   <property name="hidden_layout_modes"/>
    187   <property name="hidden_readonly_layout_modes"/>
    188  </widget>
    189  <widget name="next_kin_lastname" meta_type="String Widget">
    190   <property name="title">Next of Kin Lastname</property>
    191   <property name="fields">
    192    <element value="next_kin_lastname"/>
    193   </property>
    194   <property name="label">Next of Kin Lastname</property>
    195   <property name="label_edit">Next of Kin Lastname</property>
    196   <property name="readonly_layout_modes"/>
    197   <property name="hidden_layout_modes"/>
    198   <property name="hidden_readonly_layout_modes"/>
    199  </widget>
    200  <widget name="next_kin_middlename" meta_type="String Widget">
    201   <property name="title">Next of Kin Middlename</property>
    202   <property name="fields">
    203    <element value="next_kin_middlename"/>
    204   </property>
    205   <property name="label">Next of Kin Middlename</property>
    206   <property name="label_edit">Next of Kin Middlename</property>
    207   <property name="readonly_layout_modes"/>
    208   <property name="hidden_layout_modes"/>
    209   <property name="hidden_readonly_layout_modes"/>
    210  </widget>
    211  <widget name="next_kin_phone" meta_type="String Widget">
    212   <property name="title">Next of Kin Phone</property>
    213   <property name="fields">
    214    <element value="next_kin_phone"/>
    215   </property>
    216   <property name="label">Next of Kin Phone</property>
    217   <property name="label_edit">Next of Kin Phone</property>
    218   <property name="readonly_layout_modes"/>
    219   <property name="hidden_layout_modes"/>
    220   <property name="hidden_readonly_layout_modes"/>
    221  </widget>
    222  <widget name="next_kin_relation" meta_type="String Widget">
    223   <property name="title">Next of Kin Relationship</property>
    224   <property name="fields">
    225    <element value="next_kin_relation"/>
    226   </property>
    227   <property name="label">Next of Kin Relationship</property>
    228   <property name="label_edit">Next of Kin Relationship</property>
    229   <property name="readonly_layout_modes"/>
    230   <property name="hidden_layout_modes"/>
    231   <property name="hidden_readonly_layout_modes"/>
    232  </widget>
    233  <widget name="next_kin_state" meta_type="String Widget">
    234   <property name="title">Next of Kin State</property>
    235   <property name="fields">
    236    <element value="next_kin_state"/>
    237   </property>
    238   <property name="label">Next of Kin State</property>
    239   <property name="label_edit">Next of Kin State</property>
    240   <property name="readonly_layout_modes"/>
    241   <property name="hidden_layout_modes"/>
    242   <property name="hidden_readonly_layout_modes"/>
    243  </widget>
     443
     444 <widget name="disabled" meta_type="Boolean Widget">
     445  <property name="title">Disabled</property>
     446  <property name="fields">
     447   <element value="disabled"/>
     448  </property>
     449  <property name="label">Disabled</property>
     450  <property name="label_edit">Disabled</property>
     451  <property name="readonly_layout_modes"/>
     452  <property name="hidden_layout_modes"/>
     453  <property name="hidden_readonly_layout_modes"/>
     454  <property name="label_false">no</property>
     455  <property name="label_true">yes</property>
     456 </widget>
     457
    244458 <widget name="notes" meta_type="Text Widget">
    245459  <property name="title">Notes</property>
     
    253467  <property name="hidden_readonly_layout_modes"/>
    254468 </widget>
    255  <widget name="perm_address" meta_type="String Widget">
    256   <property name="title">Permanent Address</property>
    257   <property name="fields">
    258    <element value="perm_address"/>
    259   </property>
    260   <property name="label">Permanent Address</property>
    261   <property name="label_edit">Permanent Address</property>
    262   <property name="readonly_layout_modes"/>
    263   <property name="hidden_layout_modes"/>
    264   <property name="hidden_readonly_layout_modes"/>
    265  </widget>
    266  <widget name="perm_city" meta_type="String Widget">
    267   <property name="title">City</property>
    268   <property name="fields">
    269    <element value="perm_city"/>
    270   </property>
    271   <property name="label">City</property>
    272   <property name="label_edit">City</property>
    273   <property name="readonly_layout_modes"/>
    274   <property name="hidden_layout_modes"/>
    275   <property name="hidden_readonly_layout_modes"/>
    276  </widget>
    277  <widget name="phone" meta_type="String Widget">
    278   <property name="title">Phone</property>
    279   <property name="fields">
    280    <element value="phone"/>
    281   </property>
    282   <property name="label">Phone</property>
    283   <property name="label_edit">Phone</property>
    284   <property name="readonly_layout_modes"/>
    285   <property name="hidden_layout_modes"/>
    286   <property name="hidden_readonly_layout_modes"/>
    287  </widget>
    288  <widget name="religion" meta_type="Select Widget">
    289   <property name="title">Religion</property>
    290   <property name="fields">
    291    <element value="religion"/>
    292   </property>
    293   <property name="label">Religion</property>
    294   <property name="label_edit">Religion</property>
    295   <property name="readonly_layout_modes"/>
    296   <property name="hidden_layout_modes"/>
    297   <property name="hidden_readonly_layout_modes"/>
    298   <property name="vocabulary">religion</property>
    299  </widget>
    300  <widget name="scd_best_lang" meta_type="String Widget">
    301   <property name="title">Second Best Language</property>
    302   <property name="fields">
    303    <element value="scd_best_lang"/>
    304   </property>
    305   <property name="label">Second Best Language</property>
    306   <property name="label_edit">Second Best Language</property>
    307   <property name="readonly_layout_modes"/>
    308   <property name="hidden_layout_modes"/>
    309   <property name="hidden_readonly_layout_modes"/>
    310  </widget>
    311  <widget name="sex" meta_type="Boolean Widget">
    312   <property name="title">Sex</property>
    313   <property name="fields">
    314    <element value="sex"/>
    315   </property>
    316   <property name="label">Sex</property>
    317   <property name="label_edit">Sex</property>
    318   <property name="readonly_layout_modes"/>
    319   <property name="hidden_layout_modes"/>
    320   <property name="hidden_readonly_layout_modes"/>
    321   <property name="label_false">male</property>
    322   <property name="label_true">female</property>
    323  </widget>
    324  <widget name="sponsor_address" meta_type="String Widget">
    325   <property name="title">Sponsor Address</property>
    326   <property name="fields">
    327    <element value="sponsor_address"/>
    328   </property>
    329   <property name="label">Sponsor Address</property>
    330   <property name="label_edit">Sponsor Address</property>
    331   <property name="readonly_layout_modes"/>
    332   <property name="hidden_layout_modes"/>
    333   <property name="hidden_readonly_layout_modes"/>
    334  </widget>
    335  <widget name="sponsor_city" meta_type="String Widget">
    336   <property name="title">Sponsor City</property>
    337   <property name="fields">
    338    <element value="sponsor_city"/>
    339   </property>
    340   <property name="label">Sponsor City</property>
    341   <property name="label_edit">Sponsor City</property>
    342   <property name="readonly_layout_modes"/>
    343   <property name="hidden_layout_modes"/>
    344   <property name="hidden_readonly_layout_modes"/>
    345  </widget>
    346  <widget name="sponsor_email" meta_type="String Widget">
    347   <property name="title">Sponsor Email</property>
    348   <property name="fields">
    349    <element value="sponsor_email"/>
    350   </property>
    351   <property name="label">Sponsor Email</property>
    352   <property name="label_edit">Sponsor Email</property>
    353   <property name="readonly_layout_modes"/>
    354   <property name="hidden_layout_modes"/>
    355   <property name="hidden_readonly_layout_modes"/>
    356  </widget>
    357  <widget name="sponsor_firstname" meta_type="String Widget">
    358   <property name="title">Sponsor Firstname</property>
    359   <property name="fields">
    360    <element value="sponsor_firstname"/>
    361   </property>
    362   <property name="label">Sponsor Firstname</property>
    363   <property name="label_edit">Sponsor Firstname</property>
    364   <property name="readonly_layout_modes"/>
    365   <property name="hidden_layout_modes"/>
    366   <property name="hidden_readonly_layout_modes"/>
    367  </widget>
    368  <widget name="sponsor_lastname" meta_type="String Widget">
    369   <property name="title">Sponsor Lastname</property>
    370   <property name="fields">
    371    <element value="sponsor_lastname"/>
    372   </property>
    373   <property name="label">Sponsor Lastname</property>
    374   <property name="label_edit">Sponsor Lastname</property>
    375   <property name="readonly_layout_modes"/>
    376   <property name="hidden_layout_modes"/>
    377   <property name="hidden_readonly_layout_modes"/>
    378  </widget>
    379  <widget name="sponsor_middlename" meta_type="String Widget">
    380   <property name="title">Sponsor Middlename</property>
    381   <property name="fields">
    382    <element value="sponsor_middlename"/>
    383   </property>
    384   <property name="label">Sponsor Middlename</property>
    385   <property name="label_edit">Sponsor Middlename</property>
    386   <property name="readonly_layout_modes"/>
    387   <property name="hidden_layout_modes"/>
    388   <property name="hidden_readonly_layout_modes"/>
    389  </widget>
    390  <widget name="sponsor_phone" meta_type="String Widget">
    391   <property name="title">Sponsor Phone</property>
    392   <property name="fields">
    393    <element value="sponsor_phone"/>
    394   </property>
    395   <property name="label">Sponsor Phone</property>
    396   <property name="label_edit">Sponsor Phone</property>
    397   <property name="readonly_layout_modes"/>
    398   <property name="hidden_layout_modes"/>
    399   <property name="hidden_readonly_layout_modes"/>
    400  </widget>
    401  <widget name="sponsor_state" meta_type="String Widget">
    402   <property name="title">Sponsor State</property>
    403   <property name="fields">
    404    <element value="sponsor_state"/>
    405   </property>
    406   <property name="label">Sponsor State</property>
    407   <property name="label_edit">Sponsor State</property>
    408   <property name="readonly_layout_modes"/>
    409   <property name="hidden_layout_modes"/>
    410   <property name="hidden_readonly_layout_modes"/>
    411  </widget>
     469
    412470 <table>
    413471  <row>
     
    519577   <cell name="notes"/>
    520578  </row>
     579
    521580 </table>
    522581</object>
  • WAeUP_SRP/trunk/profiles/default/schemas/student_clearance.xml

    r421 r426  
    99 <field name="matric_no" meta_type="CPS String Field"/>
    1010
    11  <field name="entry_date" meta_type="CPS String Field"/>
     11 <field name="entry_date" meta_type="CPS DateTime Field"/>
    1212 <field name="entry_session" meta_type="CPS String Field"/>
    1313
     
    2222 <field name="fst_sit_fname" meta_type="CPS String Field"/>
    2323 <field name="fst_sit_no" meta_type="CPS String Field"/>
    24  <field name="fst_sit_date" meta_type="CPS String Field"/>
     24 <field name="fst_sit_date" meta_type="CPS DateTime Field"/>
    2525 <field name="fst_sit_type" meta_type="CPS String Field"/>
    2626 <field name="fst_sit_scan" meta_type="CPS Image Field"/>
     
    2929 <field name="scd_sit_fname" meta_type="CPS String Field"/>
    3030 <field name="scd_sit_no" meta_type="CPS String Field"/>
    31  <field name="scd_sit_date" meta_type="CPS String Field"/>
     31 <field name="scd_sit_date" meta_type="CPS DateTime Field"/>
    3232 <field name="scd_sit_type" meta_type="CPS String Field"/>
    3333 <field name="scd_sit_scan" meta_type="CPS Image Field"/>
     
    3535 <field name="alr_fname" meta_type="CPS String Field"/>
    3636 <field name="alr_no" meta_type="CPS String Field"/>
    37  <field name="alr_date" meta_type="CPS String Field"/>
     37 <field name="alr_date" meta_type="CPS DateTime Field"/>
    3838 <field name="alr_scan" meta_type="CPS Image Field"/>
    3939
  • WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml

    r421 r426  
    2626 <property name="storage_methods"/>
    2727 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="temporary_view_all"/>
    29  <alias from="view" to="temporary_view_all"/>
     28 <alias from="(Default)" to="cpsdocument_view"/>
     29 <alias from="view" to="cpsdocument_view"/>
    3030 <action title="Standard View" action_id="view" category="object"
    31     condition_expr="" url_expr="string:${object_url}/temporary_view_all"
     31    condition_expr="" url_expr="string:${object_url}/cpsdocument_view"
    3232    visible="True">
    3333  <permission value="View"/>
    3434 </action>
    3535 <action title="action_edit" action_id="edit" category="object"
    36     condition_expr="" url_expr="string:${object_url}/clearance"
     36    condition_expr="" url_expr="string:${object_url}/cpsdocument_edit_form"
    3737    visible="True">
    3838  <permission value="Modify portal content"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml

    r421 r426  
    3333 <alias from="(Default)" to="cpsdocument_view"/>
    3434 <alias from="view" to="cpsdocument_view"/>
    35  <action title="View" action_id="view" category="object" condition_expr=""
     35 <action title="Standard View" action_id="view" category="object" condition_expr=""
    3636    url_expr="string:${object_url}/cpsdocument_view" visible="True">
    3737  <permission value="View"/>
     
    3939 <action title="action_edit" action_id="edit" category="object"
    4040    condition_expr=""
    41     url_expr="string:${object_url}/student_personal_edit_form" visible="True">
     41    url_expr="string:${object_url}/cpsdocument_edit_form" visible="True">
    4242  <permission value="Modify portal content"/>
    4343 </action>
Note: See TracChangeset for help on using the changeset viewer.