source: waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py @ 164

Last change on this file since 164 was 164, checked in by joachim, 20 years ago

=clearence + eligibility added

  • Property svn:keywords set to Id
File size: 55.5 KB
RevLine 
[47]1#-*- mode: python; mode: fold -*-
[19]2##parameters=
3# $Id: getWAeUPLayouts.py 164 2005-11-10 21:40:01Z joachim $
4"""Return custom layouts types."""
5
[164]6##def widget(type = 'String Widget',
[47]7##            'data': {
8##                'title': '',
[164]9##                'fields': ('nr_of_floors',),
10##                'is_required': True,
11##                'label': 'Nr of Floors ',
12##                'label_edit': 'Nr of Floors',
[47]13##                'description': '',
[164]14##                'help': 'Number of floors per block',
[47]15##                'is_i18n': False,
[164]16##                'readonly_layout_modes': [],
17##                'hidden_layout_modes': [],
18##                'hidden_readonly_layout_modes': [],
19##                'hidden_empty': 0,
[47]20##                'hidden_if_expr': '',
[164]21##                'widget_mode_expr': '',
[47]22##                'css_class': '',
[164]23##                'css_class_expr': '',
24##                'javascript_expr': '',
25##                'vocabulary': 'range5',
26##                'translated': False,
[47]27##            },
[164]28##        },
[47]29
[96]30Heading = { ###(
31         'type': 'Heading Widget',
32         'data': {
33                'fields': ['heading'],
34                'level': 1,
35                'is_i18n': 0,
36                'is_required': 1,
37                'label_edit': 'Headline',
38                'help': 'a short headline',
39                'display_width': 40,
40                'size_max': 200,
41            },
42        }###)
43
44Text = { ###(
45            'type': 'Text Widget',
[45]46            'data': {
[96]47                'fields': ['text'],
48                'is_i18n': 1,
49                'label_edit': 'Text',
50                'label': 'Text',
51                'help': 'a short Description',
52                'css_class': 'description',
53                'width': 72,
54                'height': 5,
55                'render_format': 'text',
56                'hidden_layout_modes': (),
[45]57            },
[96]58        }###)
59
60Title = { ###(
[137]61         'type': 'String Widget',
[96]62         'data': {
[45]63                'fields': ['Title'],
[96]64                'is_i18n': 0,
[45]65                'is_required': 1,
[137]66                'label': 'Title',
67                'label_edit': 'Title',
[45]68                'display_width': 40,
69                'size_max': 200,
70            },
[96]71        }###)
72
[164]73sc_id = { ###(
74        'type': 'String Widget',
75        'data': {
76                'title': 'SC ID',
77                'fields': ('sc_id'),
78                'is_required': False,
79                'label': 'Card Serial Number ',
80                'label_edit': 'Card Serial Number',
81                'description': 'Card Serial Number ',
82                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
83                'is_i18n': False,
84                'readonly_layout_modes': (),
85                'hidden_layout_modes': (),
86                'hidden_readonly_layout_modes': (),
87                'hidden_empty': False,
88                'hidden_if_expr': 'python:1',
89                'css_class': '',
90                'widget_mode_expr': '',
91                'display_width': 10,
92                'size_max': 0,
93            }
94        }
95###)
96
97sc_pin = { ###(
98         'type': 'Scratchcard Pin Widget',
99         'data': {
100                'title': 'SC Pin',
101                'fields': ('sc_pin'),
102                'is_required': True,
103                'label': 'enter  PIN',
104                'label_edit': 'enter an Accommodation PIN',
105                'description': '',
106                'help': 'Please enter a PIN valid for Accomodation booking',
107                'is_i18n': False,
108                'readonly_layout_modes': (),
109                'hidden_layout_modes': (),
110                'hidden_readonly_layout_modes': (),
111                'hidden_empty': False,
112                'hidden_if_expr': '',
113                'css_class': '',
114                'widget_mode_expr': '',
115                'display_width': 10,
116                'size_max': 10,
117            },
118        }
119###)
120
121sc_value = { ###(
122         'type': 'Float Widget',
123         'data': {
124                'title': 'Scratch card value',
125                'fields': ('sc_value',),
126                'is_required': True,
127                'label': 'SC Value',
128                'label_edit': 'Scratcard Value',
129                'description': '',
130                'help': '',
131                'is_i18n': False,
132                'readonly_layout_modes': (),
133                'hidden_layout_modes': (),
134                'hidden_readonly_layout_modes': (),
135                'hidden_empty': False,
136                'hidden_if_expr': '',
137                'css_class': '',
138                'widget_mode_expr': '',
139                'display_width': 10,
140                'size_max': 10,
141            },
142        }
143###)
144
[96]145Description = { ###(
[45]146            'type': 'Text Widget',
147            'data': {
148                'fields': ['Description'],
149                'is_i18n': 1,
[96]150                'label_edit': 'Description',
151                'label': 'Description',
152                'css_class': 'description',
[45]153                'width': 72,
154                'height': 5,
155                'render_format': 'text',
[96]156                'hidden_layout_modes': (),
[45]157            },
[96]158        }###)
159
160common_layout = {###(
161    'widgets': {
162        'LanguageSelector': {
163            'type': 'Document Language Select Widget',
164            'data': {
165                'fields': ['Language'],
166            },
[45]167        },
[96]168        'Title': Title,
169        'Description': Description,
[45]170        'LanguageSelectorCreation': {
171            'type': 'Select Widget',
172            'data': {
173                'title': 'Language',
174                'fields': ('Language',),
175                'is_required': 0,
176                'label': 'label_language',
177                'label_edit': 'label_language',
178                'description': '',
179                'help': '',
180                'is_i18n': 0,
181                'readonly_layout_modes': (),
182                'hidden_layout_modes': ('create','edit', 'view'),
183                'hidden_readonly_layout_modes': (),
184                'hidden_empty': 0,
185                'hidden_if_expr': '',
186                'css_class': '',
187                'vocabulary': 'language_voc',
188            },
189        },
190    },
191    'layout': {
[84]192        'style_prefix': 'layout_waeup_',
[45]193        'rows': [
[84]194            #[{'widget_id': 'LanguageSelector'}],
[45]195            [{'widget_id': 'Title'},],
196            [{'widget_id': 'Description'},],
[84]197            #[{'widget_id': 'LanguageSelectorCreation'}],
[45]198            ],
199        },
200    }
201#
[47]202###)
203
204student_layout = { ###(
[19]205    'widgets': {
206        'jamb_is_admitted': {
207            'type': 'Boolean Widget',
208            'data': {
[133]209                'title': 'JAMB Admission',
[49]210                'fields': ('jamb_is_admitted',),
[19]211                'is_required': False,
[133]212                'label': 'JAMB Admission',
213                'label_edit': 'JAMB Admission',
[19]214                'description': '',
215                'help': '',
216                'is_i18n': False,
217                'readonly_layout_modes': (),
218                'hidden_layout_modes': (),
219                'hidden_readonly_layout_modes': (),
220                'hidden_empty': False,
221                'hidden_if_expr': '',
222                'css_class': '',
223                'widget_mode_expr': '',
224                'display_width': 10,
225                'size_max': 0,
226            },
227        },
[164]228##        'accommodation': {
[49]229##            'type': 'String Widget',
230##            'data': {
[164]231##                'title': 'Accommodation',
232##                'fields': ('accommodation',),
[49]233##                'is_required': False,
[164]234##                'label': 'Accommodation',
235##                'label_edit': 'Accommodation',
[49]236##                'description': '',
237##                'help': '',
238##                'is_i18n': False,
239##                'readonly_layout_modes': (),
240##                'hidden_layout_modes': (),
241##                'hidden_readonly_layout_modes': (),
242##                'hidden_empty': False,
243##                'hidden_if_expr': '',
244##                'css_class': '',
245##                'widget_mode_expr': '',
246##                'display_width': 10,
247##                'size_max': 0,
248##            },
249##        },
[164]250##        'accommodation_sc_pin': {
251##            'type': 'String Widget',
252##            'data': {
253##                'title': 'Accommodation SC Pin',
254##                'fields': ('accommodation_sc_pin',),
255##                'is_required': False,
256##                'label': 'Accommodation SC Pin',
257##                'label_edit': 'Accommodation SC Pin',
258##                'description': '',
259##                'help': '',
260##                'is_i18n': False,
261##                'readonly_layout_modes': (),
262##                'hidden_layout_modes': (),
263##                'hidden_readonly_layout_modes': (),
264##                'hidden_empty': False,
265##                'hidden_if_expr': '',
266##                'css_class': '',
267##                'widget_mode_expr': '',
268##                'display_width': 10,
269##                'size_max': 0,
270##            },
271##        },
[47]272        'faculty': {
273            'type': 'String Widget',
[25]274            'data': {
[47]275                'title': 'Faculty',
276                'fields': ('faculty',),
[25]277                'is_required': False,
[47]278                'label': 'Faculty',
279                'label_edit': 'Faculty',
[25]280                'description': '',
[47]281                'help': '',
[25]282                'is_i18n': False,
283                'readonly_layout_modes': (),
284                'hidden_layout_modes': (),
285                'hidden_readonly_layout_modes': (),
286                'hidden_empty': False,
287                'hidden_if_expr': '',
288                'css_class': '',
289                'widget_mode_expr': '',
[47]290                'display_width': 10,
291                'size_max': 0,
[25]292            },
293        },
[47]294    },
295    'layout': {
296        'style_prefix': 'layout_default_',
297        'flexible_widgets': (),
298        'ncols': 1,
299        'rows': [
[139]300            #[{'widget_id': 'jamb_is_admitted', 'ncols': 1},],
[164]301            #[{'widget_id': 'accommodation', 'ncols': 1},],
302            #[{'widget_id': 'accommodation_sc_pin', 'ncols': 1},],
[139]303            #[{'widget_id': 'faculty', 'ncols': 1},],
[47]304        ]
305    },
306}
307###)
308
[76]309firstname = { ###(
[19]310            'type': 'String Widget',
311            'data': {
[76]312                'title': 'First Name',
[47]313                'fields': ('firstname',),
[19]314                'is_required': False,
[134]315                'label': 'First Name',
316                'label_edit': 'First Name',
[76]317                'description': 'First Name',
318                'help': 'First name',
[19]319                'is_i18n': False,
[76]320                'display_width': 40,
321                },
322            }
[164]323
324###)
325
326middlename = { ###(
[47]327            'type': 'String Widget',
328            'data': {
329                'title': '',
330                'fields': ('middlename',),
331                'is_required': False,
[134]332                'label': 'Middle Name',
333                'label_edit': 'Middle Name',
[47]334                'description': '',
[76]335                'help': 'middle name',
[47]336                'is_i18n': False,
337                'readonly_layout_modes': (),
338                'hidden_layout_modes': (),
339                'hidden_readonly_layout_modes': (),
[76]340                'hidden_empty': True,
[47]341                'hidden_if_expr': '',
342                'css_class': '',
343                'widget_mode_expr': '',
[76]344                'display_width': 40,
[47]345                'size_max': 0,
[76]346                },
347            }
348
[164]349###)
350
351lastname = { ###(
[47]352            'type': 'String Widget',
353            'data': {
354                'title': '',
355                'fields': ('lastname',),
356                'is_required': False,
[134]357                'label': 'Surname',
358                'label_edit': 'Surname',
[47]359                'description': '',
[76]360                'help': 'Surname',
[47]361                'is_i18n': False,
362                'readonly_layout_modes': (),
363                'hidden_layout_modes': (),
364                'hidden_readonly_layout_modes': (),
365                'hidden_empty': False,
366                'hidden_if_expr': '',
367                'css_class': '',
368                'widget_mode_expr': '',
[76]369                'display_width': 40,
[47]370                'size_max': 0,
371            },
[76]372        }
[164]373
374###)
375
376email = { ###(
377            'type': 'Email Widget',
378            'data': {
379                'title': 'Email',
380                'fields': ('email',),
381                'is_required': False,
382                'label': 'Email',
383                'label_edit': 'Email',
384                'description': 'First Name',
385                'help': 'First name',
386                'is_i18n': False,
387                'display_width': 40,
388                },
389            }
390###)
391
392sex = { ###(
[47]393            'type': 'Boolean Widget',
394            'data': {
395                'title': '',
396                'fields': ('sex',),
397                'is_required': False,
[134]398                'label': 'Sex',
399                'label_edit': 'Sex',
[47]400                'label_false': 'male',
401                'label_true': 'female',
402                'description': '',
403                'help': '',
404                'is_i18n': False,
405                'readonly_layout_modes': (),
406                'hidden_layout_modes': (),
407                'hidden_readonly_layout_modes': (),
408                'hidden_empty': False,
409                'hidden_if_expr': '',
410                'css_class': '',
411                'widget_mode_expr': '',
[76]412                'display_width': 20,
[47]413                'size_max': 0,
[76]414            }
415        }
[133]416
[76]417###)
418
[164]419pw = { ###(
420            'type': 'Password Widget',
421            'data': {
422                'title': 'Password',
423                'fields': ('pw',),
424                'is_required': False,
425                'label': 'New Password',
426                'label_edit': 'New Password',
427                'description': '',
428                'help': 'enter a new Password',
429                'is_i18n': 0,
430                'readonly_layout_modes': [],
431                'hidden_layout_modes': [],
432                'hidden_readonly_layout_modes': [],
433                'hidden_empty': 0,
434                'hidden_if_expr': '',
435                'widget_mode_expr': '',
436                'css_class': '',
437                'css_class_expr': '',
438                'javascript_expr': '',
439                'display_width': 12,
440                'size_max': 8,
441                'password_widget': '',
442                'check_lower': 0,
443                'check_upper': 0,
444                'check_digit': 0,
445                'check_extra': 0,
446                'size_min': 5,
447            },
448        }
449###)
450
451rpw = { ###(
452            'type': 'Password Widget',
453            'data': {
454                'title': 'confirm Password',
455                'fields': ('rpw',),
456                'is_required': False,
457                'label': 'Confirm Password',
458                'label_edit': 'Confirm Password',
459                'description': '',
460                'help': 'confirm the new Password',
461                'is_i18n': False,
462                'display_width': 12,
463                'size_max': 8,
464                'password_widget': 'pw',
465                'check_lower': 0,
466                'check_upper': 0,
467                'check_digit': 0,
468                'check_extra': 0,
469                'size_min': 5,
470                },
471            }
472
473###)
474
[76]475student_personal_layout = { ###(
476    'widgets': {
477        'firstname': firstname,
478        'middlename': middlename,
479        'lastname': lastname,
480        'sex': sex,
[47]481        'birthday': {
482            'type': 'Date Widget',
483            'data': {
484                'title': '',
485                'fields': ('birthday',),
486                'is_required': False,
[161]487                'label': 'Day of birth',
[47]488                'label_edit': 'Day of birth',
489                'description': 'Day of birth',
490                'help': '',
491                'is_i18n': False,
492                'readonly_layout_modes': (),
493                'hidden_layout_modes': (),
494                'hidden_readonly_layout_modes': (),
495                'hidden_empty': False,
496                'hidden_if_expr': '',
497                'css_class': '',
498                'widget_mode_expr': '',
499                'display_width': 10,
500                'size_max': 0,
501            },
502        },
[161]503        'photo': {
504            'type': 'Photo Widget',
505            'data': {
506                'title': '',
507                'fields': ('photo',),
508                'is_required': False,
509                'label': 'Personal Picture',
510                'label_edit': 'Personal Picture',
511                'description': '',
512                'help': '',
513                'is_i18n': False,
514                'readonly_layout_modes': (),
515                'hidden_layout_modes': (),
516                'hidden_readonly_layout_modes': (),
517                'hidden_empty': False,
518                'hidden_if_expr': '',
519                'widget_mode_expr': '',
520                'css_class': '',
521                'css_class_expr': '',
522                'javascript_expr': '',
523                'deletable': True,
524                'size_max': 4194304,
525                'display_width': 90,
526                'display_height': 180,
527                'allow_resize': True,
528                'render_position': 'left',
529                'configurable': 'nothing',
530                'keep_original': 1,
531            },
532        },
533        'birth_certificate': {
534            'type': 'Image Widget',
535            'data': {
536                'title': '',
537                'fields': ('birth_certificate',),
538                'is_required': False,
539                'label': 'Birth Certificate',
540                'label_edit': 'Birth Certificate',
541                'description': '',
542                'help': '',
543                'is_i18n': False,
544                'readonly_layout_modes': (),
545                'hidden_layout_modes': (),
546                'hidden_readonly_layout_modes': (),
547                'hidden_empty': False,
548                'hidden_if_expr': '',
549                'widget_mode_expr': '',
550                'css_class': '',
551                'css_class_expr': '',
552                'javascript_expr': '',
553                'deletable': True,
554                'size_max': 4194304,
555                'display_width': 300,
556                'display_height':600,
557                'allow_resize': True,
558            },
559        },
[19]560    },
561    'layout': {
[76]562        'style_prefix': 'layout_personal_',
[19]563        'flexible_widgets': (),
564        'ncols': 1,
565        'rows': [
[47]566            [{'widget_id': 'firstname', 'ncols': 1},],
567            [{'widget_id': 'middlename', 'ncols': 1},],
568            [{'widget_id': 'lastname', 'ncols': 1},],
569            [{'widget_id': 'sex', 'ncols': 1},],
570            [{'widget_id': 'birthday', 'ncols': 1},],
[161]571            [{'widget_id': 'photo', 'ncols': 1},],
572            [{'widget_id': 'birth_certificate', 'ncols': 1},],
[19]573        ]
574    },
575}
[47]576
577###)
578
[164]579student_eligibility = { ###(
580    'widgets': {
581        'firstname': firstname,
582        'middlename': middlename,
583        'lastname': lastname,
584        'sex': sex,
585        'email': email,
586        'pw': pw,
587        'rpw': rpw,
588    },
589    'layout': {
590        'style_prefix': 'layout_eligibility_',
591        'flexible_widgets': (),
592        'ncols': 1,
593        'rows': [
594            #[{'widget_id': 'firstname', 'ncols': 1},],
595            #[{'widget_id': 'middlename', 'ncols': 1},],
596            #[{'widget_id': 'lastname', 'ncols': 1},],
597            #[{'widget_id': 'sex', 'ncols': 1},],
598            [{'widget_id': 'email', 'ncols': 1},],
599            [{'widget_id': 'pw', 'ncols': 1},],
600            [{'widget_id': 'rpw', 'ncols': 1},],
601        ]
602    },
603}
604###)
605
[47]606scratch_card = { ###(
[20]607    'widgets': {
[27]608        'sc_id': {
609            'type': 'String Widget',
[20]610            'data': {
[27]611                'title': 'SC ID',
612                'fields': ('sc_id',),
[20]613                'is_required': True,
[27]614                'label': 'Scratch card ID',
615                'label_edit': 'Scratch card ID',
[20]616                'description': '',
617                'help': '',
618                'is_i18n': False,
619                'readonly_layout_modes': (),
620                'hidden_layout_modes': (),
621                'hidden_readonly_layout_modes': (),
622                'hidden_empty': False,
623                'hidden_if_expr': '',
624                'css_class': '',
625                'widget_mode_expr': '',
626                'display_width': 10,
627                'size_max': 0,
628            },
629        },
630        'sc_pin': {
631            'type': 'Scratchcard Pin Widget',
632            'data': {
633                'title': 'SC Pin',
[25]634                'fields': ('sc_pin'),
[20]635                'is_required': True,
636                'label': 'Scratchcard Pin',
637                'label_edit': 'Scratchcard Pin',
638                'description': '',
639                'help': 'Please enter a valid Scratch card pin',
640                'is_i18n': False,
641                'readonly_layout_modes': (),
642                'hidden_layout_modes': (),
643                'hidden_readonly_layout_modes': (),
644                'hidden_empty': False,
645                'hidden_if_expr': '',
646                'css_class': '',
647                'widget_mode_expr': '',
648                'display_width': 10,
649                'size_max': 10,
650            },
651        },
652    },
653   'layout': {
[27]654        'style_prefix': 'layout_default_',
[20]655        'flexible_widgets': (),
656        'ncols': 1,
657        'rows': [
658            [{'widget_id': 'reg_nr', 'ncols': 1},],
659            [{'widget_id': 'sc_pin', 'ncols': 1},],
660        ]
661    },
662}
[68]663###)
[20]664
[76]665jamb_id = { ###(
[68]666           'type': 'StudentId Widget',
667           'data': {
668                'title': 'Registration Number',
669                'fields': ('reg_nr'),
670                'is_required': True,
671                'label': 'Registration Number',
672                'label_edit': 'Registration Number',
673                'description': '',
674                'help': 'This is the combination of 8 digits and 2 letters you are assigned when you purchase an examination form.',
675                'is_i18n': False,
676                'readonly_layout_modes': (),
677                'hidden_layout_modes': (),
678                'hidden_readonly_layout_modes': (),
679                'hidden_empty': False,
680                'hidden_if_expr': '',
681                'css_class': '',
682                'widget_mode_expr': '',
683                'display_width': 10,
684                'size_max': 10,
685                 },
686           }
[20]687
[76]688###)
689
[47]690admission = { ###(
[19]691    'widgets': {
[47]692        'sc_id': {
693            'type': 'String Widget',
694            'data': {
695                'title': 'SC ID',
[164]696                'fields': ('sc_id',),
[47]697                'is_required': False,
698                'label': 'Card Serial Number ',
699                'label_edit': 'Card Serial Number',
700                'description': 'Card Serial Number ',
701                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
702                'is_i18n': False,
703                'readonly_layout_modes': (),
704                'hidden_layout_modes': (),
705                'hidden_readonly_layout_modes': (),
706                'hidden_empty': False,
[164]707                'hidden_if_expr': '',
[47]708                'css_class': '',
709                'widget_mode_expr': '',
710                'display_width': 10,
711                'size_max': 0,
712            },
713        },
[164]714        'sc_value': { ###(
715         'type': 'Float Widget',
716         'data': {
717                'title': 'Scratch card value',
718                'fields': ('sc_value',),
719                'is_required': False,
720                'label': 'SC Value',
721                'label_edit': 'Scratcard Value',
722                'description': '',
723                'help': '',
724                'is_i18n': False,
725                'readonly_layout_modes': ('create'),
726                'hidden_layout_modes': (),
727                'hidden_readonly_layout_modes': (),
728                'hidden_empty': False,
729                'hidden_if_expr': '',
730                'css_class': '',
731                'widget_mode_expr': '',
732                'display_width': 10,
733                'size_max': 10,
734            },
735        },###)
[47]736        'sc_pin': {
[57]737            'type': 'Scratchcard Pin Widget',
[47]738            'data': {
739                'title': 'SC Pin',
[164]740                'fields': ('sc_pin'),
[47]741                'is_required': True,
742                'label': 'PIN',
743                'label_edit': 'PIN',
744                'description': '',
745                'help': 'PIN-(Personal Identification Number) is an 8 or 12 digit number on the reverse side of the scratch card which you can purchase from many Banks',
746                'is_i18n': False,
747                'readonly_layout_modes': (),
748                'hidden_layout_modes': (),
749                'hidden_readonly_layout_modes': (),
750                'hidden_empty': False,
751                'hidden_if_expr': '',
752                'css_class': '',
753                'widget_mode_expr': '',
754                'display_width': 10,
755                'size_max': 10,
756            },
757        },
[68]758        'jamb_id' : jamb_id,
759    },
760   'layout': {
761        'style_prefix': 'layout_admission_',
762        'flexible_widgets': (),
763        'ncols': 1,
764        'rows': [
[164]765            #[{'widget_id': 'sc_id', 'ncols': 1},],
766            [{'widget_id': 'sc_value', 'ncols': 1},],
[68]767            [{'widget_id': 'sc_pin', 'ncols': 1},],
768            [{'widget_id': 'jamb_id', 'ncols': 1},],
769        ]
770    },
771}
772###)
773
[164]774clearence = { ###(
775    'widgets': {
776        'sc_id': {
777            'type': 'String Widget',
778            'data': {
779                'title': 'SC ID',
780                'fields': ('sc_id',),
781                'is_required': False,
782                'label': 'Card Serial Number ',
783                'label_edit': 'Card Serial Number',
784                'description': 'Card Serial Number ',
785                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
786                'is_i18n': False,
787                'readonly_layout_modes': (),
788                'hidden_layout_modes': (),
789                'hidden_readonly_layout_modes': (),
790                'hidden_empty': False,
791                'hidden_if_expr': 'python:1',
792                'css_class': '',
793                'widget_mode_expr': '',
794                'display_width': 10,
795                'size_max': 0,
796            },
797        },
798        'sc_pin': {
799            'type': 'Scratchcard Pin Widget',
800            'data': {
801                'title': 'SC Pin',
802                'fields': ('sc_pin'),
803                'is_required': True,
804                'label': 'PIN',
805                'label_edit': 'PIN',
806                'description': '',
807                'help': 'PIN-(Personal Identification Number) is an 8 or 12 digit number on the reverse side of the scratch card which you can purchase from many Banks',
808                'is_i18n': False,
809                'readonly_layout_modes': (),
810                'hidden_layout_modes': (),
811                'hidden_readonly_layout_modes': (),
812                'hidden_empty': False,
813                'hidden_if_expr': '',
814                'css_class': '',
815                'widget_mode_expr': '',
816                'display_width': 10,
817                'size_max': 10,
818            },
819        },
820        'sc_value': { ###(
821         'type': 'Float Widget',
822         'data': {
823                'title': 'Scratch card value',
824                'fields': ('sc_value',),
825                'is_required': False,
826                'label': 'SC Value',
827                'label_edit': 'Scratcard Value',
828                'description': '',
829                'help': '',
830                'is_i18n': False,
831                'readonly_layout_modes': ('create'),
832                'hidden_layout_modes': (),
833                'hidden_readonly_layout_modes': (),
834                'hidden_empty': False,
835                'hidden_if_expr': '',
836                'css_class': '',
837                'widget_mode_expr': '',
838                'display_width': 10,
839                'size_max': 10,
840            },
841        },###)
842        'lastname': { ###(
843         'type': 'String Widget',
844         'data': {
845                'title': 'Scratch card value',
846                'fields': ('lastname',),
847                'is_required': False,
848                'label': 'Surname',
849                'label_edit': 'Surname',
850                'description': '',
851                'help': '',
852                'is_i18n': False,
853                'readonly_layout_modes': ('create'),
854                'hidden_layout_modes': (),
855                'hidden_readonly_layout_modes': (),
856                'hidden_empty': False,
857                'hidden_if_expr': '',
858                'css_class': '',
859                'widget_mode_expr': '',
860                'display_width': 10,
861                'size_max': 10,
862            },
863        },###)
864        'jamb_id' : jamb_id,
865    },
866   'layout': {
867        'style_prefix': 'layout_clearence_',
868        'flexible_widgets': (),
869        'ncols': 1,
870        'rows': [
871            #[{'widget_id': 'sc_id', 'ncols': 1},],
872            [{'widget_id': 'sc_value', 'ncols': 1},],
873            [{'widget_id': 'sc_pin', 'ncols': 1},],
874            [{'widget_id': 'jamb_id', 'ncols': 1},],
875            #[{'widget_id': 'lastname', 'ncols': 1},],
876        ]
877    },
878}
879###)
880
[68]881admission_status = { ###(
[133]882    'widgets': {
[68]883       'quick_search': {
884            'type': 'String Widget',
[47]885            'data': {
[68]886                'title': 'A search string',
887                'fields': ('admission_sc_id',),
888                'is_required': False,
889                'label': 'Quick Search',
890                'label_edit': 'Quick Search',
891                'description': 'Search',
892                'help': '',
[47]893                'is_i18n': False,
894                'readonly_layout_modes': (),
895                'hidden_layout_modes': (),
896                'hidden_readonly_layout_modes': (),
897                'hidden_empty': False,
[68]898                'hidden_if_expr': 'python:0',
[47]899                'css_class': '',
900                'widget_mode_expr': '',
[68]901                'display_width': 20,
902                'size_max': 0,
[47]903            },
904        },
[68]905
[47]906    },
907   'layout': {
[68]908        'style_prefix': 'layout_admission_status_',
[47]909        'flexible_widgets': (),
[68]910        'ncols': 2,
[47]911        'rows': [
[68]912            [{'widget_id': 'quick_search', 'ncols': 2},],
[47]913        ]
914    },
915}
916###)
917
[57]918jamb_widgets = { ###(
[49]919        'reg_nr': {
920            'type': 'StudentId Widget',
921            'data': {
[76]922                'title': 'registration nr',
[49]923                'fields': ('reg_nr',),
924                'is_required': True,
[133]925                'label': 'Registration Nr',
926                'label_edit': 'Registration Nr',
927                'description': 'The student id from JAMB',
928                'help': 'The student id from JAMB',
[49]929                'is_i18n': False,
[57]930                'display_width': 10,
931                'size_max': 10,
932            },
933        },
[76]934        'firstname': firstname,
935        'middlename': middlename,
936        'lastname': lastname,
[49]937        'age': {
938            'type': 'Int Widget',
939            'data': {
940                'title': '',
941                'fields': ('age',),
942                'is_required': False,
943                'label': 'Age',
944                'label_edit': 'Age',
945                'description': '',
946                'help': '',
947                'is_i18n': False,
948                'readonly_layout_modes': (),
949                'hidden_layout_modes': (),
950                'hidden_readonly_layout_modes': (),
951                'hidden_empty': False,
952                'hidden_if_expr': '',
953                'css_class': '',
954                'widget_mode_expr': '',
955                'display_width': 2,
956                'size_max': 2,
957            },
958        },
[76]959        'sex': sex,
[49]960        'state': {
[57]961            'type': 'Select Widget',
[49]962            'data': {
963                'title': '',
[57]964                'fields': ('state',),
[49]965                'is_required': False,
[133]966                'label': 'State of Origin',
967                'label_edit': 'State of Origin',
[49]968                'description': '',
969                'help': '',
970                'is_i18n': False,
[57]971                'vocabulary': 'nigerian_states',
[49]972            },
973        },
974        'exam_results': {
975            'type': 'String Widget',
976            'data': {
977                'title': '',
978                'fields': ('exam_results',),
979                'is_required': False,
[133]980                'label': 'JAMB Results',
981                'label_edit': 'JAMB Results',
[49]982                'description': '',
983                'help': '',
984                'is_i18n': False,
985                'readonly_layout_modes': (),
986                'hidden_layout_modes': (),
987                'hidden_readonly_layout_modes': (),
988                'hidden_empty': False,
989                'hidden_if_expr': '',
990                'css_class': '',
991                'widget_mode_expr': '',
992                'display_width': 20,
993                'size_max': 0,
994            },
995        },
996        'aggregate': {
[57]997            'type': 'Int Widget',
[49]998            'data': {
999                'title': 'Agregate',
1000                'fields': ('aggregate',),
1001                'is_required': False,
[57]1002                'label': 'Score',
1003                'label_edit': 'Score',
[49]1004                'description': '',
1005                'help': '',
1006                'is_i18n': False,
1007            },
1008        },
[57]1009        'faculty': {
1010            'type': 'Select Widget',
[49]1011            'data': {
[57]1012                'title': 'Faculty',
1013                'fields': ('faculty',),
[106]1014                'is_required': True,
[133]1015                'label': 'Faculty',
1016                'label_edit': 'Faculty',
[49]1017                'description': '',
[57]1018                'help': '',
[49]1019                'is_i18n': False,
[57]1020                'vocabulary': 'faculties',
[49]1021            },
1022        },
[106]1023        'course': {
1024            'type': 'String Widget',
1025            'data': {
1026                'title': 'Study Course',
1027                'fields': ('course',),
1028                'is_required': True,
1029                'label': 'Study Course',
1030                'label_edit': 'Study Course',
1031                'description': '',
1032                'help': 'The course to study',
1033                'is_i18n': False,
1034            },
1035        },
[57]1036        'listing_date': {
1037            'type': 'Date Widget',
[49]1038            'data': {
[57]1039                'title': 'Listing Date',
1040                'fields': ('listing_date',),
[49]1041                'is_required': False,
[57]1042                'label': 'Listing Date',
1043                'label_edit': 'Listing Date',
1044                'description': '',
1045                'help': '',
[49]1046                'is_i18n': False,
1047                'readonly_layout_modes': (),
1048                'hidden_layout_modes': (),
1049                'hidden_readonly_layout_modes': (),
1050                'hidden_empty': False,
1051                'hidden_if_expr': '',
1052                'css_class': '',
1053                'widget_mode_expr': '',
[57]1054                'display_width': 3,
[49]1055                'size_max': 0,
1056            },
1057        },
[57]1058##        '2nd_choice': { ###(
1059##            'type': 'String Widget',
1060##            'data': {
1061##                'title': 'Second choice',
1062##                'fields': ('2nd_choice',),
1063##                'is_required': False,
1064##                'label': 'Second choice',
1065##                'label_edit': 'Second choice',
1066##                'description': '',
1067##                'help': 'second_choice',
1068##                'is_i18n': False,
1069##                'readonly_layout_modes': (),
1070##                'hidden_layout_modes': (),
1071##                'hidden_readonly_layout_modes': (),
1072##                'hidden_empty': False,
1073##                'hidden_if_expr': '',
1074##                'css_class': '',
1075##                'widget_mode_expr': '',
1076##                'display_width': 20,
1077##                'size_max': 0,
1078##            },
1079##        },
[133]1080##
[57]1081##        '3rd_choice': {
1082##            'type': 'String Widget',
1083##            'data': {
1084##                'title': 'Third_choice',
1085##                'fields': ('3rd_choice',),
1086##                'is_required': False,
1087##                'label': 'Third choice',
1088##                'label_edit': 'Third choice',
1089##                'description': 'third_choice',
1090##                'help': 'third_choice',
1091##                'is_i18n': False,
1092##                'readonly_layout_modes': (),
1093##                'hidden_layout_modes': (),
1094##                'hidden_readonly_layout_modes': (),
1095##                'hidden_empty': False,
1096##                'hidden_if_expr': '',
1097##                'css_class': '',
1098##                'widget_mode_expr': '',
1099##                'display_width': 20,
1100##                'size_max': 0,
1101##            },
1102##        },
1103###)
1104
[49]1105        'sc_id': {
1106            'type': 'String Widget',
1107            'data': {
1108                'title': '',
1109                'fields': ('admission_sc_id',),
1110                'is_required': False,
1111                'label': 'Scratch card ID used',
1112                'label_edit': 'Scratch card ID used',
1113                'description': '',
1114                'help': '',
1115                'is_i18n': False,
1116                'readonly_layout_modes': (),
1117                'hidden_layout_modes': (),
1118                'hidden_readonly_layout_modes': (),
1119                'hidden_empty': False,
1120                'hidden_if_expr': '',
1121                'css_class': '',
1122                'widget_mode_expr': '',
1123                'display_width': 20,
1124                'size_max': 0,
1125            },
1126        },
1127        'sc_pin': {
1128            'type': 'String Widget',
1129            'data': {
1130                'title': '',
1131                'fields': ('admission_sc_pin',),
1132                'is_required': False,
[151]1133                'label': 'Scratch Card PIN',
1134                'label_edit': 'Scratch Card PIN',
[49]1135                'description': '',
1136                'help': '',
1137                'is_i18n': False,
1138                'readonly_layout_modes': (),
1139                'hidden_layout_modes': (),
1140                'hidden_readonly_layout_modes': (),
1141                'hidden_empty': False,
1142                'hidden_if_expr': '',
1143                'css_class': '',
1144                'widget_mode_expr': '',
1145                'display_width': 20,
1146                'size_max': 0,
1147            },
1148        },
[57]1149    }
1150###)
1151
1152jamb_layoutcreate = { ###(
1153    'widgets': jamb_widgets,
[49]1154    'layout': {
1155        'style_prefix': 'layout_jambcreate_',
1156        'flexible_widgets': (),
1157        'ncols': 1,
1158        'rows': [
1159            [{'widget_id': 'reg_nr', 'ncols': 1},],
[57]1160            [{'widget_id': 'firstname', 'ncols': 1},],
1161            [{'widget_id': 'middlename', 'ncols': 1},],
1162            [{'widget_id': 'lastname', 'ncols': 1},],
[49]1163            #[{'widget_id': 'sc_id', 'ncols': 1},],
1164            #[{'widget_id': 'sc_pin', 'ncols': 1},],
1165            [{'widget_id': 'age', 'ncols': 1},],
1166            [{'widget_id': 'sex', 'ncols': 1},],
1167            [{'widget_id': 'state', 'ncols': 1},],
[57]1168            #[{'widget_id': 'exam_results', 'ncols': 1},],
[49]1169            [{'widget_id': 'aggregate', 'ncols': 1},],
[57]1170            [{'widget_id': 'faculty', 'ncols': 1},],
[106]1171            [{'widget_id': 'course', 'ncols': 1},],
[57]1172            [{'widget_id': 'listing_date', 'ncols': 1},],
1173            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1174            #[{'widget_id': '3rd_choice', 'ncols': 1},],
[49]1175        ]
1176    },
1177}
1178###)
1179
[47]1180jamb_layout = { ###(
[57]1181    'widgets': jamb_widgets,
[19]1182    'layout': {
[76]1183        'style_prefix': 'layout_waeup_',
[19]1184        'flexible_widgets': (),
1185        'ncols': 1,
1186        'rows': [
1187            [{'widget_id': 'reg_nr', 'ncols': 1},],
[57]1188            [{'widget_id': 'firstname', 'ncols': 1},],
1189            [{'widget_id': 'middlename', 'ncols': 1},],
1190            [{'widget_id': 'lastname', 'ncols': 1},],
1191            #[{'widget_id': 'sc_id', 'ncols': 1},],
[76]1192            [{'widget_id': 'sc_pin', 'ncols': 1},],
[19]1193            [{'widget_id': 'age', 'ncols': 1},],
1194            [{'widget_id': 'sex', 'ncols': 1},],
1195            [{'widget_id': 'state', 'ncols': 1},],
[57]1196            #[{'widget_id': 'exam_results', 'ncols': 1},],
[19]1197            [{'widget_id': 'aggregate', 'ncols': 1},],
[57]1198            [{'widget_id': 'faculty', 'ncols': 1},],
[106]1199            [{'widget_id': 'course', 'ncols': 1},],
[57]1200            [{'widget_id': 'listing_date', 'ncols': 1},],
1201            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1202            #[{'widget_id': '3rd_choice', 'ncols': 1},],
[19]1203        ]
1204    },
1205}
[47]1206###)
[19]1207
[164]1208admission_slip = { ###(
1209    'widgets': jamb_widgets,
1210    'layout': {
1211        'style_prefix': 'layout_waeup_',
1212        'flexible_widgets': (),
1213        'ncols': 1,
1214        'rows': [
1215            [{'widget_id': 'reg_nr', 'ncols': 1},],
1216            [{'widget_id': 'firstname', 'ncols': 1},],
1217            [{'widget_id': 'middlename', 'ncols': 1},],
1218            [{'widget_id': 'lastname', 'ncols': 1},],
1219            #[{'widget_id': 'sc_id', 'ncols': 1},],
1220            #[{'widget_id': 'sc_pin', 'ncols': 1},],
1221            [{'widget_id': 'age', 'ncols': 1},],
1222            [{'widget_id': 'sex', 'ncols': 1},],
1223            [{'widget_id': 'state', 'ncols': 1},],
1224            #[{'widget_id': 'exam_results', 'ncols': 1},],
1225            [{'widget_id': 'aggregate', 'ncols': 1},],
1226            [{'widget_id': 'faculty', 'ncols': 1},],
1227            [{'widget_id': 'course', 'ncols': 1},],
1228            [{'widget_id': 'listing_date', 'ncols': 1},],
1229            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1230            #[{'widget_id': '3rd_choice', 'ncols': 1},],
1231        ]
1232    },
1233}
1234###)
1235
[68]1236course = { ###(
1237    'widgets': {
[103]1238        'heading': {
[144]1239         'type': 'String Widget',
[103]1240         'data': {
1241                'fields': ['heading'],
1242                'is_i18n': 0,
1243                'is_required': 1,
[139]1244                'label': 'Title',
[103]1245                'label_edit': 'Title',
1246                'help': 'Course Title',
1247                'display_width': 40,
1248                'size_max': 40,
1249            },
1250        },
[96]1251        'text': Text,
[68]1252        'level': {
[103]1253            'type': 'Select Widget',
[68]1254            'data': {
1255                'title': '',
1256                'fields': ('level',),
1257                'is_required': True,
1258                'label': 'Level',
1259                'label_edit': 'Level',
1260                'description': '',
1261                'help': '',
1262                'is_i18n': False,
[103]1263                'vocabulary': 'courselevel',
[68]1264            },
1265        },
1266        'code': {
1267            'type': 'String Widget',
1268            'data': {
1269                'title': 'Code',
1270                'fields': ('code',),
1271                'is_required': True,
1272                'label': 'Code',
1273                'label_edit': 'Code',
1274                'description': '',
1275                'help': '',
1276                'is_i18n': False,
1277                'display_width': 10,
1278                'size_max': 0,
1279            },
1280        },
1281        'semester': {
1282            'type': 'Boolean Widget',
1283            'data': {
1284                'title': '',
1285                'fields': ('semester',),
1286                'is_required': True,
1287                'label': 'Semester',
1288                'label_edit': 'Semester',
1289                'label_false': 'Second Semester',
1290                'label_true': 'First Semester',
1291                'description': '',
1292                'help': '',
1293                'is_i18n': False,
1294                'display_width': 10,
1295                'size_max': 0,
1296            },
1297        },
1298        'credit': {
1299            'type': 'Int Widget',
1300            'data': {
1301                'title': '',
1302                'fields': ('credit',),
1303                'is_required': True,
1304                'label': 'Credit',
1305                'label_edit': 'Credit',
1306                'description': '',
1307                'help': '',
1308                'is_i18n': False,
[78]1309                'display_width': 2,
[68]1310                'size_max': 0,
1311            },
1312        },
1313        'core_elective': {
1314            'type': 'Boolean Widget',
1315            'data': {
1316                'title': '',
1317                'fields': ('core_elective',),
1318                'is_required': True,
1319                'label': 'Core or elective',
1320                'label_edit': 'Core or elective',
1321                'label_true': 'Core Course',
1322                'label_false': 'Elective Course',
1323                'description': '',
1324                'help': '',
1325                'is_i18n': False,
1326                'display_width': 10,
1327                'size_max': 0,
1328            },
1329        },
1330    },
1331   'layout': {
[84]1332        'style_prefix': 'layout_waeup_',
[68]1333        'flexible_widgets': (),
1334        'ncols': 1,
1335        'rows': [
[144]1336            [{'widget_id': 'heading', 'ncols': 1},],
1337            #[{'widget_id': 'Title', 'ncols': 1},],
[96]1338            [{'widget_id': 'text', 'ncols': 1},],
[68]1339            [{'widget_id': 'level', 'ncols': 1},],
1340            [{'widget_id': 'code', 'ncols': 1},],
1341            [{'widget_id': 'semester', 'ncols': 1},],
1342            [{'widget_id': 'credit', 'ncols': 1},],
1343            [{'widget_id': 'core_elective', 'ncols': 1},],
1344        ]
1345    },
1346}
1347###)
1348
[139]1349course_results = { ###(
1350    'widgets': {
1351        'points': {
1352            'type': 'Int Widget',
1353            'data': {
1354                'title': '',
1355                'fields': ('points',),
1356                'is_required': False,
1357                'label': 'Points',
1358                'label_edit': 'Points',
1359                'description': '',
1360                'help': '',
1361                'is_i18n': False,
1362                'readonly_layout_modes': (),
1363                'hidden_layout_modes': (),
1364                'hidden_readonly_layout_modes': (),
1365                'hidden_empty': False,
1366                'hidden_if_expr': '',
1367                'css_class': '',
1368                'widget_mode_expr': '',
1369                'display_width': 3,
1370                'size_max': 3,
1371            },
1372        },
1373        'grade': {
1374            'type': 'String Widget',
1375            'data': {
1376                'title': '',
1377                'fields': ('grade'),
1378                'is_required': False,
1379                'label': 'Grade',
1380                'label_edit': 'Grade',
1381                'description': '',
1382                'help': '',
1383                'is_i18n': False,
1384                'readonly_layout_modes': (),
1385                'hidden_layout_modes': (),
1386                'hidden_readonly_layout_modes': (),
1387                'hidden_empty': False,
1388                'hidden_if_expr': '',
1389                'css_class': '',
1390                'widget_mode_expr': '',
1391                'display_width': 2,
1392                'size_max': 1,
1393            },
1394        },
1395    },
1396   'layout': {
1397        'style_prefix': 'layout_default_',
1398        'flexible_widgets': (),
1399        'ncols': 1,
1400        'rows': [
1401            [{'widget_id': 'points', 'ncols': 1},],
1402            [{'widget_id': 'grade', 'ncols': 1},],
1403        ]
1404    },
1405}
1406###)
1407
[103]1408accommodation = { ###(
[101]1409    'widgets': {
[103]1410        'heading': {
[144]1411         'type': 'String Widget',
[103]1412         'data': {
1413                'fields': ['heading'],
[139]1414                'level': 2,
[103]1415                'is_i18n': 0,
1416                'is_required': 1,
[139]1417                'label': 'Hall Name',
[133]1418                'label_edit': 'Hall Name',
[103]1419                'help': '',
1420                'display_width': 40,
1421                'size_max': 40,
1422            },
1423        },
[101]1424        'text': Text,
[103]1425        'which_sex': {
1426            'type': 'Boolean Widget',
[101]1427            'data': {
1428                'title': '',
[103]1429                'fields': ('which_sex',),
1430                'is_required': False,
[133]1431                'label': 'Sex',
1432                'label_edit': 'Sex',
[103]1433                'label_false': 'male',
1434                'label_true': 'female',
[101]1435                'description': '',
1436                'help': '',
1437                'is_i18n': False,
1438            },
1439        },
[103]1440        'nr_of_blocks': {
1441            'type': 'Select Widget',
[101]1442            'data': {
[103]1443                'title': '',
1444                'fields': ('nr_of_blocks',),
[101]1445                'is_required': True,
[103]1446                'label': 'Nr of Blocks',
1447                'label_edit': 'Nr of Blocks',
[101]1448                'description': '',
[133]1449                'help': 'Number of blocks',
[101]1450                'is_i18n': False,
[103]1451                'vocabulary': 'range10',
[101]1452            },
1453        },
[103]1454        'nr_of_floors': {
1455            'type': 'Select Widget',
[101]1456            'data': {
1457                'title': '',
[103]1458                'fields': ('nr_of_floors',),
[101]1459                'is_required': True,
[103]1460                'label': 'Nr of Floors ',
1461                'label_edit': 'Nr of Floors',
[101]1462                'description': '',
[133]1463                'help': 'Number of floors per block',
[101]1464                'is_i18n': False,
[103]1465                'vocabulary': 'range5',
[101]1466            },
1467        },
[103]1468        'rooms_per_floor': {
1469            'type': 'Select Widget',
[101]1470            'data': {
1471                'title': '',
[103]1472                'fields': ('rooms_per_floor',),
[101]1473                'is_required': True,
[103]1474                'label': 'Rooms per Floor',
1475                'label_edit': 'Rooms per Floor',
[101]1476                'description': '',
[133]1477                'help': 'Number of rooms per floor',
[101]1478                'is_i18n': False,
[103]1479                'vocabulary': 'range50',
[101]1480            },
1481        },
[103]1482        'beds_per_room': {
1483            'type': 'Select Widget',
[101]1484            'data': {
1485                'title': '',
[103]1486                'fields': ('beds_per_room',),
[101]1487                'is_required': True,
[103]1488                'label': 'Beds per Room',
1489                'label_edit': 'Beds per Room',
[101]1490                'description': '',
[133]1491                'help': 'Number of beds per room',
[101]1492                'is_i18n': False,
[103]1493                'vocabulary': 'range10',
[101]1494            },
1495        },
[107]1496        'beds_assigned': {
1497            'type': 'Int Widget',
1498            'data': {
1499                'title': '',
1500                'fields': ('beds_assigned',),
1501                'is_required': True,
1502                'label': 'Assigned Beds',
[133]1503                'label_edit': 'Assigned Beds',
[107]1504                'description': '',
[133]1505                'help': 'Number of beds already assined to students',
[107]1506                'is_i18n': False,
1507            },
1508        },
[101]1509    },
1510   'layout': {
1511        'style_prefix': 'layout_waeup_',
1512        'flexible_widgets': (),
1513        'ncols': 1,
1514        'rows': [
[144]1515            [{'widget_id': 'heading', 'ncols': 1},],
1516            #[{'widget_id': 'Title', 'ncols': 1},],
[101]1517            [{'widget_id': 'text', 'ncols': 1},],
[103]1518            [{'widget_id': 'which_sex', 'ncols': 1},],
1519            [{'widget_id': 'nr_of_blocks', 'ncols': 1},],
1520            [{'widget_id': 'nr_of_floors', 'ncols': 1},],
1521            [{'widget_id': 'rooms_per_floor', 'ncols': 1},],
1522            [{'widget_id': 'beds_per_room', 'ncols': 1},],
[107]1523            [{'widget_id': 'beds_assigned', 'ncols': 1},],
[101]1524        ]
1525    },
1526}
1527###)
1528
[164]1529study_level = { ###(
1530    'widgets': {
1531      'sc_id': { ###(
1532        'type': 'String Widget',
1533        'data': {
1534                'title': 'SC ID',
1535                'fields': ('sc_id'),
1536                'is_required': False,
1537                'label': 'Card Serial Number ',
1538                'label_edit': 'Card Serial Number',
1539                'description': 'Card Serial Number ',
1540                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
1541                'is_i18n': False,
1542                'readonly_layout_modes': (),
1543                'hidden_layout_modes': (),
1544                'hidden_readonly_layout_modes': (),
1545                'hidden_empty': False,
1546                'hidden_if_expr': 'python:1',
1547                'css_class': '',
1548                'widget_mode_expr': '',
1549                'display_width': 10,
1550                'size_max': 0,
1551            }
1552        },###)
1553      'sc_pin': { ###(
1554         'type': 'Scratchcard Pin Widget',
1555         'data': {
1556                'title': 'SC Pin',
1557                'fields': ('sc_pin'),
1558                'is_required': True,
1559                'label': 'enter  PIN',
1560                'label_edit': 'enter Scratchcard PIN with the value above',
1561                'description': '',
1562                'help': 'Please enter a Scratchcard PIN valid for Registration of next level',
1563                'is_i18n': False,
1564                'readonly_layout_modes': (),
1565                'hidden_layout_modes': (),
1566                'hidden_readonly_layout_modes': (),
1567                'hidden_empty': False,
1568                'hidden_if_expr': '',
1569                'css_class': '',
1570                'widget_mode_expr': '',
1571                'display_width': 10,
1572                'size_max': 10,
1573            },
1574        },###)
1575      'sc_value': { ###(
1576         'type': 'Float Widget',
1577         'data': {
1578                'title': 'Scratch card value',
1579                'fields': ('sc_value',),
1580                'is_required': False,
1581                'label': 'Scratcard Value',
1582                'label_edit': 'Scratcard Value',
1583                'description': '',
1584                'help': '',
1585                'is_i18n': False,
1586                'readonly_layout_modes': ('create'),
1587                'hidden_layout_modes': (),
1588                'hidden_readonly_layout_modes': (),
1589                'hidden_empty': False,
1590                'hidden_if_expr': '',
1591                'css_class': '',
1592                'widget_mode_expr': '',
1593                'display_width': 10,
1594                'size_max': 10,
1595            },
1596        },###)
1597               },
1598   'layout': {
1599        'style_prefix': 'layout_slregister_',
1600        'flexible_widgets': (),
1601        'ncols': 1,
1602        'rows': [
1603            #[{'widget_id': 'sc_id', 'ncols': 1},],
1604            [{'widget_id': 'sc_value', 'ncols': 1},],
1605            [{'widget_id': 'sc_pin', 'ncols': 1},],
1606        ]
1607    },
1608}###)
1609
[139]1610accobook = { ###(
1611    'widgets': {
[164]1612     'sc_id': { ###(
1613        'type': 'String Widget',
1614        'data': {
[139]1615                'title': 'SC ID',
[164]1616                'fields': ('accommodation_sc_id'),
[139]1617                'is_required': False,
1618                'label': 'Card Serial Number ',
1619                'label_edit': 'Card Serial Number',
1620                'description': 'Card Serial Number ',
1621                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
1622                'is_i18n': False,
1623                'readonly_layout_modes': (),
1624                'hidden_layout_modes': (),
1625                'hidden_readonly_layout_modes': (),
1626                'hidden_empty': False,
1627                'hidden_if_expr': 'python:1',
1628                'css_class': '',
1629                'widget_mode_expr': '',
1630                'display_width': 10,
1631                'size_max': 0,
[164]1632            }
1633        },###)
1634        'sc_pin': { ###(
1635         'type': 'Scratchcard Pin Widget',
1636         'data': {
[139]1637                'title': 'SC Pin',
1638                'fields': ('accommodation_sc_pin'),
1639                'is_required': True,
[164]1640                'label': 'enter  PIN',
[139]1641                'label_edit': 'enter an Accommodation PIN',
1642                'description': '',
1643                'help': 'Please enter a PIN valid for Accomodation booking',
1644                'is_i18n': False,
1645                'readonly_layout_modes': (),
1646                'hidden_layout_modes': (),
1647                'hidden_readonly_layout_modes': (),
1648                'hidden_empty': False,
1649                'hidden_if_expr': '',
1650                'css_class': '',
1651                'widget_mode_expr': '',
1652                'display_width': 10,
1653                'size_max': 10,
1654            },
[164]1655        },###)
1656        'sc_value': { ###(
1657         'type': 'Float Widget',
1658         'data': {
1659                'title': 'Scratch card value',
1660                'fields': ('accommodation_sc_value',),
1661                'is_required': False,
1662                'label': 'SC Value',
1663                'label_edit': 'Scratcard Value',
1664                'description': '',
1665                'help': '',
1666                'is_i18n': False,
1667                'readonly_layout_modes': ('create'),
1668                'hidden_layout_modes': (),
1669                'hidden_readonly_layout_modes': (),
1670                'hidden_empty': False,
1671                'hidden_if_expr': '',
1672                'css_class': '',
1673                'widget_mode_expr': '',
1674                'display_width': 10,
1675                'size_max': 10,
1676            },
1677        },###)
1678               },
[139]1679   'layout': {
1680        'style_prefix': 'layout_accobook_',
1681        'flexible_widgets': (),
1682        'ncols': 1,
1683        'rows': [
1684            #[{'widget_id': 'sc_id', 'ncols': 1},],
[164]1685            [{'widget_id': 'sc_value', 'ncols': 1},],
[139]1686            [{'widget_id': 'sc_pin', 'ncols': 1},],
1687        ]
1688    },
1689}
1690###)
1691
[47]1692layouts = {}
[96]1693layouts['university'] = common_layout
[47]1694layouts['waeup_common'] = common_layout
1695layouts['student'] = student_layout
[141]1696layouts['study_level'] = study_level
[47]1697layouts['student_personal'] = student_personal_layout
[164]1698layouts['student_eligibility'] = student_eligibility
[133]1699layouts['accommodation'] = accommodation
1700layouts['accobook'] = accobook
[47]1701layouts['scratch_card'] = scratch_card
1702layouts['admission'] = admission
[164]1703layouts['clearence'] = clearence
1704layouts['admission_slip'] = admission_slip
[49]1705layouts['jambcreate'] = jamb_layoutcreate
[19]1706layouts['jamb'] = jamb_layout
[96]1707layouts['faculty'] = common_layout
1708layouts['department'] = common_layout
[68]1709layouts['course'] = course
1710layouts['admission_status'] = admission_status
[19]1711return layouts
Note: See TracBrowser for help on using the repository browser.