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

Last change on this file since 185 was 182, checked in by joachim, 19 years ago

=eligibility edit geht fast

  • Property svn:keywords set to Id
File size: 80.0 KB
RevLine 
[47]1#-*- mode: python; mode: fold -*-
[19]2##parameters=
3# $Id: getWAeUPLayouts.py 182 2005-11-16 23:30:12Z 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',
[178]38                'help': 'Short Headline',
[96]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',
[178]51                'help': 'Short Description',
[96]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 = { ###(
[178]98         'type': 'Scratchcard Pin Widget',
[164]99         'data': {
[177]100                'title': 'SC PIN',
[164]101                'fields': ('sc_pin'),
102                'is_required': True,
103                'label': 'enter  PIN',
[177]104                'label_edit': 'Enter an Accommodation PIN',
[164]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
[76]204firstname = { ###(
[19]205            'type': 'String Widget',
206            'data': {
[76]207                'title': 'First Name',
[47]208                'fields': ('firstname',),
[19]209                'is_required': False,
[134]210                'label': 'First Name',
211                'label_edit': 'First Name',
[76]212                'description': 'First Name',
[178]213                'help': '',
[19]214                'is_i18n': False,
[76]215                'display_width': 40,
216                },
217            }
[164]218
219###)
220
221middlename = { ###(
[47]222            'type': 'String Widget',
223            'data': {
224                'title': '',
225                'fields': ('middlename',),
226                'is_required': False,
[134]227                'label': 'Middle Name',
228                'label_edit': 'Middle Name',
[47]229                'description': '',
[178]230                'help': '',
[47]231                'is_i18n': False,
232                'readonly_layout_modes': (),
233                'hidden_layout_modes': (),
234                'hidden_readonly_layout_modes': (),
[76]235                'hidden_empty': True,
[47]236                'hidden_if_expr': '',
237                'css_class': '',
238                'widget_mode_expr': '',
[76]239                'display_width': 40,
[47]240                'size_max': 0,
[76]241                },
242            }
243
[164]244###)
245
246lastname = { ###(
[47]247            'type': 'String Widget',
248            'data': {
249                'title': '',
250                'fields': ('lastname',),
251                'is_required': False,
[134]252                'label': 'Surname',
253                'label_edit': 'Surname',
[47]254                'description': '',
[178]255                'help': '',
[47]256                'is_i18n': False,
257                'readonly_layout_modes': (),
258                'hidden_layout_modes': (),
259                'hidden_readonly_layout_modes': (),
260                'hidden_empty': False,
261                'hidden_if_expr': '',
262                'css_class': '',
263                'widget_mode_expr': '',
[76]264                'display_width': 40,
[47]265                'size_max': 0,
266            },
[76]267        }
[164]268
269###)
270
271email = { ###(
272            'type': 'Email Widget',
273            'data': {
274                'title': 'Email',
275                'fields': ('email',),
[179]276                'is_required': True,
[164]277                'label': 'Email',
278                'label_edit': 'Email',
[178]279                'description': '',
280                'help': '',
[164]281                'is_i18n': False,
282                'display_width': 40,
283                },
284            }
285###)
286
287sex = { ###(
[47]288            'type': 'Boolean Widget',
289            'data': {
290                'title': '',
291                'fields': ('sex',),
292                'is_required': False,
[134]293                'label': 'Sex',
294                'label_edit': 'Sex',
[47]295                'label_false': 'male',
296                'label_true': 'female',
297                'description': '',
298                'help': '',
299                'is_i18n': False,
300                'readonly_layout_modes': (),
301                'hidden_layout_modes': (),
302                'hidden_readonly_layout_modes': (),
303                'hidden_empty': False,
304                'hidden_if_expr': '',
305                'css_class': '',
306                'widget_mode_expr': '',
[76]307                'display_width': 20,
[47]308                'size_max': 0,
[76]309            }
310        }
[133]311
[76]312###)
313
[164]314pw = { ###(
315            'type': 'Password Widget',
316            'data': {
317                'title': 'Password',
318                'fields': ('pw',),
319                'is_required': False,
320                'label': 'New Password',
321                'label_edit': 'New Password',
322                'description': '',
[177]323                'help': 'Enter a New Password',
[164]324                'is_i18n': 0,
325                'readonly_layout_modes': [],
326                'hidden_layout_modes': [],
327                'hidden_readonly_layout_modes': [],
328                'hidden_empty': 0,
329                'hidden_if_expr': '',
330                'widget_mode_expr': '',
331                'css_class': '',
332                'css_class_expr': '',
333                'javascript_expr': '',
334                'display_width': 12,
335                'size_max': 8,
336                'password_widget': '',
337                'check_lower': 0,
338                'check_upper': 0,
339                'check_digit': 0,
340                'check_extra': 0,
341                'size_min': 5,
342            },
[175]343        }###)
[164]344
345rpw = { ###(
346            'type': 'Password Widget',
347            'data': {
348                'title': 'confirm Password',
349                'fields': ('rpw',),
350                'is_required': False,
351                'label': 'Confirm Password',
352                'label_edit': 'Confirm Password',
353                'description': '',
[177]354                'help': 'Confirm the New Password',
[164]355                'is_i18n': False,
356                'display_width': 12,
357                'size_max': 8,
358                'password_widget': 'pw',
359                'check_lower': 0,
360                'check_upper': 0,
361                'check_digit': 0,
362                'check_extra': 0,
363                'size_min': 5,
364                },
[175]365            }###)
366
[173]367username_hidden = { ###(
368            'type': 'String Widget',
369            'data': {
370                'title': 'Username',
371                'fields': ('username',),
372                'hidden_layout_modes': ['create',],
373                },
374            }
[164]375
376###)
377
[166]378student_layout = { ###(
379    'widgets': {
380        'jamb_is_admitted': {
381            'type': 'Boolean Widget',
382            'data': {
383                'title': 'JAMB Admission',
384                'fields': ('jamb_is_admitted',),
385                'is_required': False,
386                'label': 'JAMB Admission',
387                'label_edit': 'JAMB Admission',
388                'description': '',
389                'help': '',
390                'is_i18n': False,
391                'readonly_layout_modes': (),
392                'hidden_layout_modes': (),
393                'hidden_readonly_layout_modes': (),
394                'hidden_empty': False,
395                'hidden_if_expr': '',
396                'css_class': '',
397                'widget_mode_expr': '',
398                'display_width': 10,
399                'size_max': 0,
400            },
401        },
402
403        'faculty': {
404            'type': 'String Widget',
405            'data': {
406                'title': 'Faculty',
407                'fields': ('faculty',),
408                'is_required': False,
409                'label': 'Faculty',
410                'label_edit': 'Faculty',
411                'description': '',
412                'help': '',
413                'is_i18n': False,
414                'readonly_layout_modes': (),
415                'hidden_layout_modes': (),
416                'hidden_readonly_layout_modes': (),
417                'hidden_empty': False,
418                'hidden_if_expr': '',
419                'css_class': '',
420                'widget_mode_expr': '',
421                'display_width': 10,
422                'size_max': 0,
423            },
424        },
425        'accommodation': {
426            'type': 'String Widget',
427            'data': {
428                'title': 'Accommodation',
429                'fields': ('accommodation',),
430                'is_required': False,
431                'label': 'Accommodation',
432                'label_edit': 'Accommodation',
433                'description': '',
434                'help': '',
435                'is_i18n': False,
436                'readonly_layout_modes': (),
437                'hidden_layout_modes': (),
438                'hidden_readonly_layout_modes': (),
439                'hidden_empty': False,
440                'hidden_if_expr': '',
441                'css_class': '',
442                'widget_mode_expr': '',
443                'display_width': 10,
444                'size_max': 0,
445            },
446        },
447        'accommodation_sc_id': { ###(
448            'type': 'String Widget',
449            'data': {
450                'title': 'Accommodation SC ID',
451                'fields': ('accommodation_sc_id',),
452                'is_required': False,
453                'label': 'Accommodation SC ID',
454                'label_edit': 'Accommodation SC ID',
455                'description': '',
456                'help': '',
457                'is_i18n': False,
458                'readonly_layout_modes': (),
459                'hidden_layout_modes': (),
460                'hidden_readonly_layout_modes': (),
461                'hidden_empty': False,
462                'hidden_if_expr': '',
463                'css_class': '',
464                'widget_mode_expr': '',
465                'display_width': 10,
466                'size_max': 0,
467            },
468        },###)
469        'accommodation_sc_pin': { ###(
470            'type': 'String Widget',
471            'data': {
[177]472                'title': 'Accommodation SC PIN',
[166]473                'fields': ('accommodation_sc_pin',),
474                'is_required': False,
[177]475                'label': 'Accommodation SC PIN',
476                'label_edit': 'Accommodation SC PIN',
[166]477                'description': '',
478                'help': '',
479                'is_i18n': False,
480                'readonly_layout_modes': (),
481                'hidden_layout_modes': (),
482                'hidden_readonly_layout_modes': (),
483                'hidden_empty': False,
484                'hidden_if_expr': '',
485                'css_class': '',
486                'widget_mode_expr': '',
487                'display_width': 10,
488                'size_max': 0,
489            },
490        },###)
491        'accommodation_sc_value': { ###(
492            'type': 'Float Widget',
493            'data': {
494                'title': 'Accommodation SC Value',
495                'fields': ('accommodation_sc_value',),
496                'is_required': False,
497                'label': 'Accommodation SC Value',
498                'label_edit': 'Accommodation SC Value',
499                'description': '',
500                'help': '',
501                'is_i18n': False,
502                'readonly_layout_modes': (),
503                'hidden_layout_modes': (),
504                'hidden_readonly_layout_modes': (),
505                'hidden_empty': False,
506                'hidden_if_expr': '',
507                'css_class': '',
508                'widget_mode_expr': '',
509                'display_width': 10,
510                'size_max': 0,
511            },
512        },###)
513        'accommodation_date': { ###(
514            'type': 'DateTime Widget',
515            'data': {
[177]516                'title': 'Accommodation SC PIN',
[166]517                'fields': ('accommodation_date',),
518                'is_required': False,
519                'label': 'Accommodation SC Date',
520                'label_edit': 'Accommodation SC Date',
521                'description': '',
522                'help': '',
523                'is_i18n': False,
524                'readonly_layout_modes': (),
525                'hidden_layout_modes': (),
526                'hidden_readonly_layout_modes': (),
527                'hidden_empty': False,
528                'hidden_if_expr': '',
529                'css_class': '',
530                'widget_mode_expr': '',
531                'display_width': 10,
532                'size_max': 0,
533            },
534        },###)
535        'hostel_fee_sc_id': { ###(
536            'type': 'String Widget',
537            'data': {
538                'title': 'hostel_fee SC ID',
539                'fields': ('hostel_fee_sc_id',),
540                'is_required': False,
541                'label': 'Hostel Fee SC ID',
542                'label_edit': 'Hostel Fee SC ID',
543                'description': '',
544                'help': '',
545                'is_i18n': False,
546                'readonly_layout_modes': (),
547                'hidden_layout_modes': (),
548                'hidden_readonly_layout_modes': (),
549                'hidden_empty': False,
550                'hidden_if_expr': '',
551                'css_class': '',
552                'widget_mode_expr': '',
553                'display_width': 10,
554                'size_max': 0,
555            },
556        },###)
557        'hostel_fee_sc_pin': { ###(
558            'type': 'String Widget',
559            'data': {
[177]560                'title': 'hostel_fee SC PIN',
[166]561                'fields': ('hostel_fee_sc_pin',),
562                'is_required': False,
[177]563                'label': 'Hostel Fee SC PIN',
564                'label_edit': 'Hostel Fee SC PIN',
[166]565                'description': '',
566                'help': '',
567                'is_i18n': False,
568                'readonly_layout_modes': (),
569                'hidden_layout_modes': (),
570                'hidden_readonly_layout_modes': (),
571                'hidden_empty': False,
572                'hidden_if_expr': '',
573                'css_class': '',
574                'widget_mode_expr': '',
575                'display_width': 10,
576                'size_max': 0,
577            },
578        },###)
579        'hostel_fee_sc_value': { ###(
580            'type': 'Float Widget',
581            'data': {
582                'title': 'hostel_fee SC Value',
583                'fields': ('hostel_fee_sc_value',),
584                'is_required': False,
585                'label': 'Hostel Fee SC Value',
586                'label_edit': 'Hostel Fee SC Value',
587                'description': '',
588                'help': '',
589                'is_i18n': False,
590                'readonly_layout_modes': (),
591                'hidden_layout_modes': (),
592                'hidden_readonly_layout_modes': (),
593                'hidden_empty': False,
594                'hidden_if_expr': '',
595                'css_class': '',
596                'widget_mode_expr': '',
597                'display_width': 10,
598                'size_max': 0,
599            },
600        },###)
601        'hostel_fee_date': { ###(
602            'type': 'DateTime Widget',
603            'data': {
[177]604                'title': 'hostel_fee SC PIN',
[166]605                'fields': ('hostel_fee_date',),
606                'is_required': False,
607                'label': 'Hostel Fee SC Date',
608                'label_edit': 'Hostel Fee SC Date',
609                'description': '',
610                'help': '',
611                'is_i18n': False,
612                'readonly_layout_modes': (),
613                'hidden_layout_modes': (),
614                'hidden_readonly_layout_modes': (),
615                'hidden_empty': False,
616                'hidden_if_expr': '',
617                'css_class': '',
618                'widget_mode_expr': '',
619                'display_width': 10,
620                'size_max': 0,
621            },
622        },###)
623        'adm_check_sc_id': { ###(
624            'type': 'String Widget',
625            'data': {
626                'title': 'Admission check SC ID',
627                'fields': ('adm_check_sc_id',),
628                'is_required': False,
629                'label': 'Admission check SC ID',
630                'label_edit': 'Admission check SC ID',
631                'description': '',
632                'help': '',
633                'is_i18n': False,
634                'readonly_layout_modes': (),
635                'hidden_layout_modes': (),
636                'hidden_readonly_layout_modes': (),
637                'hidden_empty': False,
638                'hidden_if_expr': '',
639                'css_class': '',
640                'widget_mode_expr': '',
641                'display_width': 10,
642                'size_max': 0,
643            },
644        },###)
645        'adm_check_sc_pin': { ###(
646            'type': 'String Widget',
647            'data': {
[177]648                'title': 'Admission check SC PIN',
[166]649                'fields': ('adm_check_sc_pin',),
650                'is_required': False,
[177]651                'label': 'Admission check SC PIN',
652                'label_edit': 'Admission check SC PIN',
[166]653                'description': '',
654                'help': '',
655                'is_i18n': False,
656                'readonly_layout_modes': (),
657                'hidden_layout_modes': (),
658                'hidden_readonly_layout_modes': (),
659                'hidden_empty': False,
660                'hidden_if_expr': '',
661                'css_class': '',
662                'widget_mode_expr': '',
663                'display_width': 10,
664                'size_max': 0,
665            },
666        },###)
667        'adm_check_sc_value': { ###(
668            'type': 'Float Widget',
669            'data': {
670                'title': 'Admission check SC Value',
671                'fields': ('adm_check_sc_value',),
672                'is_required': False,
673                'label': 'Admission check SC Value',
674                'label_edit': 'Admission check SC Value',
675                'description': '',
676                'help': '',
677                'is_i18n': False,
678                'readonly_layout_modes': (),
679                'hidden_layout_modes': (),
680                'hidden_readonly_layout_modes': (),
681                'hidden_empty': False,
682                'hidden_if_expr': '',
683                'css_class': '',
684                'widget_mode_expr': '',
685                'display_width': 10,
686                'size_max': 0,
687            },
688        },###)
689        'adm_check_date': { ###(
690            'type': 'DateTime Widget',
691            'data': {
[177]692                'title': 'Admission check SC PIN',
[166]693                'fields': ('adm_check_date',),
694                'is_required': False,
695                'label': 'Admission check SC Date',
696                'label_edit': 'Admission check SC Date',
697                'description': '',
698                'help': '',
699                'is_i18n': False,
700                'readonly_layout_modes': (),
701                'hidden_layout_modes': (),
702                'hidden_readonly_layout_modes': (),
703                'hidden_empty': False,
704                'hidden_if_expr': '',
705                'css_class': '',
706                'widget_mode_expr': '',
707                'display_width': 10,
708                'size_max': 0,
709            },
710        },###)
[175]711        'clearance_sc_id': { ###(
[166]712            'type': 'String Widget',
713            'data': {
[175]714                'title': 'Clearance SC ID',
715                'fields': ('clearance_sc_id',),
[166]716                'is_required': False,
[175]717                'label': 'Clearance SC ID',
718                'label_edit': 'Clearance SC ID',
[166]719                'description': '',
720                'help': '',
721                'is_i18n': False,
722                'readonly_layout_modes': (),
723                'hidden_layout_modes': (),
724                'hidden_readonly_layout_modes': (),
725                'hidden_empty': False,
726                'hidden_if_expr': '',
727                'css_class': '',
728                'widget_mode_expr': '',
729                'display_width': 10,
730                'size_max': 0,
731            },
732        },###)
[175]733        'clearance_sc_pin': { ###(
[166]734            'type': 'String Widget',
735            'data': {
[177]736                'title': 'clearance SC PIN',
[175]737                'fields': ('clearance_sc_pin',),
[166]738                'is_required': False,
[177]739                'label': 'Clearance SC PIN',
740                'label_edit': 'Clearance SC PIN',
[166]741                'description': '',
742                'help': '',
743                'is_i18n': False,
744                'readonly_layout_modes': (),
745                'hidden_layout_modes': (),
746                'hidden_readonly_layout_modes': (),
747                'hidden_empty': False,
748                'hidden_if_expr': '',
749                'css_class': '',
750                'widget_mode_expr': '',
751                'display_width': 10,
752                'size_max': 0,
753            },
754        },###)
[175]755        'clearance_sc_value': { ###(
[166]756            'type': 'Float Widget',
757            'data': {
[175]758                'title': 'clearance SC Value',
759                'fields': ('clearance_sc_value',),
[166]760                'is_required': False,
[175]761                'label': 'Clearance SC Value',
762                'label_edit': 'Clearance SC Value',
[166]763                'description': '',
764                'help': '',
765                'is_i18n': False,
766                'readonly_layout_modes': (),
767                'hidden_layout_modes': (),
768                'hidden_readonly_layout_modes': (),
769                'hidden_empty': False,
770                'hidden_if_expr': '',
771                'css_class': '',
772                'widget_mode_expr': '',
773                'display_width': 10,
774                'size_max': 0,
775            },
776        },###)
[175]777        'clearance_date': { ###(
[166]778            'type': 'DateTime Widget',
779            'data': {
[177]780                'title': 'clearance SC PIN',
[175]781                'fields': ('clearance_date',),
[166]782                'is_required': False,
[175]783                'label': 'Clearance SC Date',
784                'label_edit': 'Clearance SC Date',
[166]785                'description': '',
786                'help': '',
787                'is_i18n': False,
788                'readonly_layout_modes': (),
789                'hidden_layout_modes': (),
790                'hidden_readonly_layout_modes': (),
791                'hidden_empty': False,
792                'hidden_if_expr': '',
793                'css_class': '',
794                'widget_mode_expr': '',
795                'display_width': 10,
796                'size_max': 0,
797            },
798        },###)
799    },
800    'layout': {
[169]801        'style_prefix': 'layout_waeup_',
[166]802        'flexible_widgets': (),
803        'ncols': 1,
804        'rows': [
805            [{'widget_id': 'adm_check_sc_id', 'ncols': 1},],
806            [{'widget_id': 'adm_check_sc_pin', 'ncols': 1},],
807            [{'widget_id': 'adm_check_sc_value', 'ncols': 1},],
808            [{'widget_id': 'adm_check_date', 'ncols': 1},],
[175]809            [{'widget_id': 'clearance_sc_id', 'ncols': 1},],
810            [{'widget_id': 'clearance_sc_pin', 'ncols': 1},],
811            [{'widget_id': 'clearance_sc_value', 'ncols': 1},],
812            [{'widget_id': 'clearance_date', 'ncols': 1},],
[166]813            [{'widget_id': 'accommodation', 'ncols': 1},],
814            [{'widget_id': 'accommodation_sc_id', 'ncols': 1},],
815            [{'widget_id': 'accommodation_sc_pin', 'ncols': 1},],
816            [{'widget_id': 'accommodation_sc_value', 'ncols': 1},],
817            [{'widget_id': 'accommodation_date', 'ncols': 1},],
818            [{'widget_id': 'hostel_fee_sc_id', 'ncols': 1},],
819            [{'widget_id': 'hostel_fee_sc_pin', 'ncols': 1},],
820            [{'widget_id': 'hostel_fee_sc_value', 'ncols': 1},],
821            [{'widget_id': 'hostel_fee_date', 'ncols': 1},],
822        ]
823    },
824}###)
825
[76]826student_personal_layout = { ###(
827    'widgets': {
828        'firstname': firstname,
829        'middlename': middlename,
830        'lastname': lastname,
[176]831        'email': email,
[76]832        'sex': sex,
[47]833        'birthday': {
834            'type': 'Date Widget',
835            'data': {
836                'title': '',
837                'fields': ('birthday',),
838                'is_required': False,
[161]839                'label': 'Day of birth',
[47]840                'label_edit': 'Day of birth',
841                'description': 'Day of birth',
842                'help': '',
843                'is_i18n': False,
844                'readonly_layout_modes': (),
845                'hidden_layout_modes': (),
846                'hidden_readonly_layout_modes': (),
847                'hidden_empty': False,
848                'hidden_if_expr': '',
849                'css_class': '',
850                'widget_mode_expr': '',
851                'display_width': 10,
852                'size_max': 0,
853            },
854        },
[166]855    },
856    'layout': {
857        'style_prefix': 'layout_personal_',
858        'flexible_widgets': (),
859        'ncols': 1,
860        'rows': [
861            [{'widget_id': 'firstname', 'ncols': 1},],
862            [{'widget_id': 'middlename', 'ncols': 1},],
863            [{'widget_id': 'lastname', 'ncols': 1},],
[176]864            [{'widget_id': 'email', 'ncols': 1},],
[166]865            [{'widget_id': 'sex', 'ncols': 1},],
866            [{'widget_id': 'birthday', 'ncols': 1},],
867        ]
868    },
869}###)
870
[179]871student_personal_addon = { ###(
872    'widgets': {
873        'firstname': middlename,
874        'middlename': middlename,
875        'lastname': lastname,
876        'sex': sex,
877        'email': email,
878        'username': username_hidden,
879        'pw': pw,
880        'rpw': rpw,
881    },
882    'layout': {
883        'style_prefix': 'layout_eligibility_',
884        'flexible_widgets': (),
885        'ncols': 1,
886        'rows': [
887            #[{'widget_id': 'firstname', 'ncols': 1},],
888            #[{'widget_id': 'middlename', 'ncols': 1},],
889            #[{'widget_id': 'lastname', 'ncols': 1},],
890            #[{'widget_id': 'username', 'ncols': 1},],
891            [{'widget_id': 'email', 'ncols': 1},],
892            #[{'widget_id': 'pw', 'ncols': 1},],
893            #[{'widget_id': 'rpw', 'ncols': 1},],
894        ]
895    },
896}###)
897
898schoolresults = { ###(
899            'type': 'Ordered List Widget',
900            'data': {
901                'title': '',
902                'fields': ['schoolresults'],
903                'is_required': 0,
904                'label': 'School Results',
905                'label_edit': 'School Results',
906                'description': '',
907                'help': '',
908                'is_i18n': 0,
909                'readonly_layout_modes': [],
[182]910                'hidden_layout_modes': ['create','edit'],
[179]911                'hidden_readonly_layout_modes': [],
912                'hidden_empty': 0,
913                'hidden_if_expr': '',
914                'widget_mode_expr': '',
915                'css_class': '',
916                'css_class_expr': '',
917                'javascript_expr': '',
918                'width': 40,
919                'height': 5,
920                'format_empty': '',
921            },
922        }###)
923
[182]924eli_widgets = { ###(
[179]925        'jamb_results': {
926            'type': 'String Widget',
927            'data': {
928                'title': '',
929                'fields': ('jamb_results',),
930                'is_required': False,
931                'label': 'JAMB Results',
932                'label_edit': 'JAMB Results',
933                'description': '',
934                'help': '',
935                'is_i18n': False,
936                'readonly_layout_modes': (),
937                'hidden_layout_modes': (),
938                'hidden_readonly_layout_modes': (),
939                'hidden_empty': False,
940                'hidden_if_expr': '',
941                'css_class': '',
942                'widget_mode_expr': '',
943                'display_width': 20,
944                'size_max': 0,
945            },
946        },
947        'jamb_aggregate': {
948            'type': 'Int Widget',
949            'data': {
950                'title': 'Agregate',
951                'fields': ('jamb_aggregate',),
952                'is_required': False,
953                'label': 'Score',
954                'label_edit': 'Score',
955                'description': '',
956                'help': '',
957                'is_i18n': False,
958            },
959        },
960        'jamb_listing_date': {
961            'type': 'Date Widget',
962            'data': {
963                'title': 'Listing Date',
964                'fields': ('jamb_listing_date',),
965                'is_required': False,
966                'label': 'Listing Date',
967                'label_edit': 'Listing Date',
968                'description': '',
969                'help': '',
970                'is_i18n': False,
971                'readonly_layout_modes': (),
972                'hidden_layout_modes': (),
973                'hidden_readonly_layout_modes': (),
974                'hidden_empty': False,
975                'hidden_if_expr': '',
976                'css_class': '',
977                'widget_mode_expr': '',
978                'display_width': 3,
979                'size_max': 0,
980            },
981        },
982        'faculty': {
983            'type': 'Select Widget',
984            'data': {
985                'title': 'Faculty',
986                'fields': ('faculty',),
987                'is_required': True,
988                'label': 'Faculty',
989                'label_edit': 'Faculty',
990                'description': '',
991                'help': '',
992                'is_i18n': False,
993                'vocabulary': 'get_faculties_voc',
994            },
995        },
996        'course': {
997            'type': 'Select Widget',
998            'data': {
999                'title': 'Study Course',
1000                'fields': ('course',),
1001                'is_required': True,
1002                'label': 'Study Course',
1003                'label_edit': 'Study Course',
1004                'description': '',
1005                'help': 'The course to study',
1006                'vocabulary': 'get_departments_voc',
1007                'is_i18n': False,
1008            },
1009        },
1010        'schoolresults': schoolresults,
[182]1011    }###)
1012
1013   
1014student_eligibility = { ###(
1015    'widgets': eli_widgets,
[179]1016    'layout': {
1017        'style_prefix': 'layout_waeup_',
1018        'flexible_widgets': (),
1019        'ncols': 1,
1020        'rows': [
1021            [{'widget_id': 'jamb_results', 'ncols': 1},],
1022            [{'widget_id': 'jamb_aggregate', 'ncols': 1},],
1023            [{'widget_id': 'jamb_listing_date', 'ncols': 1},],
1024            [{'widget_id': 'faculty', 'ncols': 1},],
1025            [{'widget_id': 'course', 'ncols': 1},],
1026            [{'widget_id': 'schoolresults', 'ncols': 1},],
1027        ]
1028    },
1029}###)
1030
[182]1031student_eligibility_edit = { ###(
1032    'widgets': eli_widgets,
1033    'layout': {
1034        'style_prefix': 'layout_eligibility_',
1035        'flexible_widgets': (),
1036        'ncols': 1,
1037        'rows': [
1038            [{'widget_id': 'jamb_results', 'ncols': 1},],
1039            [{'widget_id': 'jamb_aggregate', 'ncols': 1},],
1040            [{'widget_id': 'jamb_listing_date', 'ncols': 1},],
1041            [{'widget_id': 'faculty', 'ncols': 1},],
1042            [{'widget_id': 'course', 'ncols': 1},],
1043            [{'widget_id': 'schoolresults', 'ncols': 1},],
1044        ]
1045    },
1046}###)
1047
[179]1048student_schoolresults = { ###(
1049    'widgets': {
1050        'schoolresults': schoolresults,
1051    },
1052    'layout': {
1053        'style_prefix': 'layout_results_',
1054        'flexible_widgets': (),
1055        'ncols': 1,
1056        'rows': [
1057            #[{'widget_id': 'jamb_results', 'ncols': 1},],
1058            #[{'widget_id': 'jamb_aggregate', 'ncols': 1},],
1059            #[{'widget_id': 'jamb_listing_date', 'ncols': 1},],
1060            #[{'widget_id': 'faculty', 'ncols': 1},],
1061            #[{'widget_id': 'course', 'ncols': 1},],
1062            [{'widget_id': 'schoolresults', 'ncols': 1},],
1063        ]
1064    },
1065}###)
1066
[166]1067student_documents = { ###(
1068    'widgets': {
1069        'photo': { ###(
[161]1070            'type': 'Photo Widget',
1071            'data': {
1072                'title': '',
1073                'fields': ('photo',),
[171]1074                'is_required': False,
[161]1075                'label': 'Personal Picture',
1076                'label_edit': 'Personal Picture',
1077                'description': '',
1078                'help': '',
1079                'is_i18n': False,
1080                'readonly_layout_modes': (),
1081                'hidden_layout_modes': (),
1082                'hidden_readonly_layout_modes': (),
1083                'hidden_empty': False,
1084                'hidden_if_expr': '',
1085                'widget_mode_expr': '',
1086                'css_class': '',
1087                'css_class_expr': '',
1088                'javascript_expr': '',
1089                'deletable': True,
[173]1090                'size_max': 204800,
[161]1091                'display_width': 90,
1092                'display_height': 180,
1093                'allow_resize': True,
1094                'render_position': 'left',
1095                'configurable': 'nothing',
1096                'keep_original': 1,
1097            },
[166]1098        },###)
1099        'birth_certificate': { ###(
[161]1100            'type': 'Image Widget',
1101            'data': {
1102                'title': '',
1103                'fields': ('birth_certificate',),
[171]1104                'is_required': False,
[161]1105                'label': 'Birth Certificate',
1106                'label_edit': 'Birth Certificate',
1107                'description': '',
1108                'help': '',
1109                'is_i18n': False,
1110                'readonly_layout_modes': (),
1111                'hidden_layout_modes': (),
1112                'hidden_readonly_layout_modes': (),
1113                'hidden_empty': False,
1114                'hidden_if_expr': '',
1115                'widget_mode_expr': '',
1116                'css_class': '',
1117                'css_class_expr': '',
1118                'javascript_expr': '',
1119                'deletable': True,
[173]1120                'size_max': 204800,
[161]1121                'display_width': 300,
1122                'display_height':600,
1123                'allow_resize': True,
1124            },
[166]1125        },###)
1126        'passport': { ###(
1127            'type': 'Image Widget',
1128            'data': {
1129                'title': '',
1130                'fields': ('passport',),
[171]1131                'is_required': False,
[166]1132                'label': 'scanned Passport',
1133                'label_edit': 'scanned Passport',
1134                'description': '',
1135                'help': '',
1136                'is_i18n': False,
1137                'readonly_layout_modes': (),
1138                'hidden_layout_modes': (),
1139                'hidden_readonly_layout_modes': (),
1140                'hidden_empty': False,
1141                'hidden_if_expr': '',
1142                'widget_mode_expr': '',
1143                'css_class': '',
1144                'css_class_expr': '',
1145                'javascript_expr': '',
1146                'deletable': True,
[173]1147                'size_max': 204800,
[166]1148                'display_width': 300,
1149                'display_height':600,
1150                'allow_resize': True,
1151            },
1152        },###)
1153        'results_first': { ###(
1154            'type': 'Image Widget',
1155            'data': {
1156                'title': '',
1157                'fields': ('results_first',),
[171]1158                'is_required': False,
[166]1159                'label': '1st Sitting Results',
1160                'label_edit': '1st Sitting Results',
1161                'description': '',
1162                'help': '',
1163                'is_i18n': False,
1164                'readonly_layout_modes': (),
1165                'hidden_layout_modes': (),
1166                'hidden_readonly_layout_modes': (),
1167                'hidden_empty': False,
1168                'hidden_if_expr': '',
1169                'widget_mode_expr': '',
1170                'css_class': '',
1171                'css_class_expr': '',
1172                'javascript_expr': '',
1173                'deletable': True,
[173]1174                'size_max': 204800,
[166]1175                'display_width': 300,
1176                'display_height':600,
1177                'allow_resize': True,
1178            },
1179        },###)
1180        'results_second': { ###(
1181            'type': 'Image Widget',
1182            'data': {
1183                'title': '',
1184                'fields': ('results_second',),
1185                'is_required': False,
1186                'label': '2nd Sitting Results',
1187                'label_edit': '2nd Sitting Results',
1188                'description': '',
1189                'help': '',
1190                'is_i18n': False,
1191                'readonly_layout_modes': (),
1192                'hidden_layout_modes': (),
1193                'hidden_readonly_layout_modes': (),
1194                'hidden_empty': False,
1195                'hidden_if_expr': '',
1196                'widget_mode_expr': '',
1197                'css_class': '',
1198                'css_class_expr': '',
1199                'javascript_expr': '',
1200                'deletable': True,
1201                'size_max': 40960,
1202                'display_width': 300,
1203                'display_height':600,
1204                'allow_resize': True,
1205            },
1206        },###)
[19]1207    },
1208    'layout': {
[76]1209        'style_prefix': 'layout_personal_',
[19]1210        'flexible_widgets': (),
1211        'ncols': 1,
1212        'rows': [
[161]1213            [{'widget_id': 'photo', 'ncols': 1},],
1214            [{'widget_id': 'birth_certificate', 'ncols': 1},],
[166]1215            [{'widget_id': 'passport', 'ncols': 1},],
1216            [{'widget_id': 'results_first', 'ncols': 1},],
1217            [{'widget_id': 'results_second', 'ncols': 1},],
[19]1218        ]
1219    },
1220}
[47]1221
1222###)
1223
1224scratch_card = { ###(
[20]1225    'widgets': {
[27]1226        'sc_id': {
1227            'type': 'String Widget',
[20]1228            'data': {
[27]1229                'title': 'SC ID',
1230                'fields': ('sc_id',),
[20]1231                'is_required': True,
[27]1232                'label': 'Scratch card ID',
1233                'label_edit': 'Scratch card ID',
[20]1234                'description': '',
1235                'help': '',
1236                'is_i18n': False,
1237                'readonly_layout_modes': (),
1238                'hidden_layout_modes': (),
1239                'hidden_readonly_layout_modes': (),
1240                'hidden_empty': False,
1241                'hidden_if_expr': '',
1242                'css_class': '',
1243                'widget_mode_expr': '',
1244                'display_width': 10,
1245                'size_max': 0,
1246            },
1247        },
1248        'sc_pin': {
[178]1249            'type': 'Scratchcard Pin Widget',
[20]1250            'data': {
[177]1251                'title': 'SC PIN',
[25]1252                'fields': ('sc_pin'),
[20]1253                'is_required': True,
[178]1254                'label': 'Scratchcard Pin',
1255                'label_edit': 'Scratchcard Pin',
[20]1256                'description': '',
[178]1257                'help': '',
[20]1258                'is_i18n': False,
1259                'readonly_layout_modes': (),
1260                'hidden_layout_modes': (),
1261                'hidden_readonly_layout_modes': (),
1262                'hidden_empty': False,
1263                'hidden_if_expr': '',
1264                'css_class': '',
1265                'widget_mode_expr': '',
1266                'display_width': 10,
1267                'size_max': 10,
1268            },
1269        },
1270    },
1271   'layout': {
[169]1272        'style_prefix': 'layout_waeup_',
[20]1273        'flexible_widgets': (),
1274        'ncols': 1,
1275        'rows': [
1276            [{'widget_id': 'reg_nr', 'ncols': 1},],
1277            [{'widget_id': 'sc_pin', 'ncols': 1},],
1278        ]
1279    },
1280}
[68]1281###)
[20]1282
[76]1283jamb_id = { ###(
[68]1284           'type': 'StudentId Widget',
1285           'data': {
1286                'title': 'Registration Number',
1287                'fields': ('reg_nr'),
1288                'is_required': True,
1289                'label': 'Registration Number',
1290                'label_edit': 'Registration Number',
1291                'description': '',
1292                'help': 'This is the combination of 8 digits and 2 letters you are assigned when you purchase an examination form.',
1293                'is_i18n': False,
1294                'readonly_layout_modes': (),
1295                'hidden_layout_modes': (),
1296                'hidden_readonly_layout_modes': (),
1297                'hidden_empty': False,
1298                'hidden_if_expr': '',
1299                'css_class': '',
1300                'widget_mode_expr': '',
1301                'display_width': 10,
1302                'size_max': 10,
1303                 },
1304           }
[20]1305
[76]1306###)
1307
[47]1308admission = { ###(
[19]1309    'widgets': {
[47]1310        'sc_id': {
1311            'type': 'String Widget',
1312            'data': {
1313                'title': 'SC ID',
[164]1314                'fields': ('sc_id',),
[47]1315                'is_required': False,
1316                'label': 'Card Serial Number ',
1317                'label_edit': 'Card Serial Number',
1318                'description': 'Card Serial Number ',
1319                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
1320                'is_i18n': False,
1321                'readonly_layout_modes': (),
1322                'hidden_layout_modes': (),
1323                'hidden_readonly_layout_modes': (),
1324                'hidden_empty': False,
[164]1325                'hidden_if_expr': '',
[47]1326                'css_class': '',
1327                'widget_mode_expr': '',
1328                'display_width': 10,
1329                'size_max': 0,
1330            },
1331        },
[164]1332        'sc_value': { ###(
1333         'type': 'Float Widget',
1334         'data': {
1335                'title': 'Scratch card value',
1336                'fields': ('sc_value',),
1337                'is_required': False,
1338                'label': 'SC Value',
1339                'label_edit': 'Scratcard Value',
1340                'description': '',
1341                'help': '',
1342                'is_i18n': False,
1343                'readonly_layout_modes': ('create'),
1344                'hidden_layout_modes': (),
1345                'hidden_readonly_layout_modes': (),
1346                'hidden_empty': False,
1347                'hidden_if_expr': '',
1348                'css_class': '',
1349                'widget_mode_expr': '',
1350                'display_width': 10,
1351                'size_max': 10,
1352            },
1353        },###)
[47]1354        'sc_pin': {
[178]1355            'type': 'Scratchcard Pin Widget',
[47]1356            'data': {
[177]1357                'title': 'SC PIN',
[164]1358                'fields': ('sc_pin'),
[47]1359                'is_required': True,
1360                'label': 'PIN',
1361                'label_edit': 'PIN',
1362                'description': '',
1363                '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',
1364                'is_i18n': False,
1365                'readonly_layout_modes': (),
1366                'hidden_layout_modes': (),
1367                'hidden_readonly_layout_modes': (),
1368                'hidden_empty': False,
1369                'hidden_if_expr': '',
1370                'css_class': '',
1371                'widget_mode_expr': '',
1372                'display_width': 10,
1373                'size_max': 10,
1374            },
1375        },
[68]1376        'jamb_id' : jamb_id,
1377    },
1378   'layout': {
[166]1379        'style_prefix': 'layout_sc_',
[68]1380        'flexible_widgets': (),
1381        'ncols': 1,
1382        'rows': [
[164]1383            #[{'widget_id': 'sc_id', 'ncols': 1},],
1384            [{'widget_id': 'sc_value', 'ncols': 1},],
[68]1385            [{'widget_id': 'sc_pin', 'ncols': 1},],
1386            [{'widget_id': 'jamb_id', 'ncols': 1},],
1387        ]
1388    },
1389}
1390###)
1391
[175]1392clearance = { ###(
[164]1393    'widgets': {
1394        'sc_id': {
1395            'type': 'String Widget',
1396            'data': {
1397                'title': 'SC ID',
1398                'fields': ('sc_id',),
1399                'is_required': False,
1400                'label': 'Card Serial Number ',
1401                'label_edit': 'Card Serial Number',
1402                'description': 'Card Serial Number ',
1403                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
1404                'is_i18n': False,
1405                'readonly_layout_modes': (),
1406                'hidden_layout_modes': (),
1407                'hidden_readonly_layout_modes': (),
1408                'hidden_empty': False,
1409                'hidden_if_expr': 'python:1',
1410                'css_class': '',
1411                'widget_mode_expr': '',
1412                'display_width': 10,
1413                'size_max': 0,
1414            },
1415        },
1416        'sc_pin': {
[178]1417            'type': 'Scratchcard Pin Widget',
[164]1418            'data': {
[177]1419                'title': 'SC PIN',
[164]1420                'fields': ('sc_pin'),
1421                'is_required': True,
1422                'label': 'PIN',
1423                'label_edit': 'PIN',
1424                'description': '',
1425                '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',
1426                'is_i18n': False,
1427                'readonly_layout_modes': (),
1428                'hidden_layout_modes': (),
1429                'hidden_readonly_layout_modes': (),
1430                'hidden_empty': False,
1431                'hidden_if_expr': '',
1432                'css_class': '',
1433                'widget_mode_expr': '',
1434                'display_width': 10,
1435                'size_max': 10,
1436            },
1437        },
1438        'sc_value': { ###(
1439         'type': 'Float Widget',
1440         'data': {
1441                'title': 'Scratch card value',
1442                'fields': ('sc_value',),
1443                'is_required': False,
1444                'label': 'SC Value',
1445                'label_edit': 'Scratcard Value',
1446                'description': '',
1447                'help': '',
1448                'is_i18n': False,
1449                'readonly_layout_modes': ('create'),
1450                'hidden_layout_modes': (),
1451                'hidden_readonly_layout_modes': (),
1452                'hidden_empty': False,
1453                'hidden_if_expr': '',
1454                'css_class': '',
1455                'widget_mode_expr': '',
1456                'display_width': 10,
1457                'size_max': 10,
1458            },
1459        },###)
1460        'lastname': { ###(
1461         'type': 'String Widget',
1462         'data': {
1463                'title': 'Scratch card value',
1464                'fields': ('lastname',),
1465                'is_required': False,
1466                'label': 'Surname',
1467                'label_edit': 'Surname',
1468                'description': '',
1469                'help': '',
1470                'is_i18n': False,
1471                'readonly_layout_modes': ('create'),
1472                'hidden_layout_modes': (),
1473                'hidden_readonly_layout_modes': (),
1474                'hidden_empty': False,
1475                'hidden_if_expr': '',
1476                'css_class': '',
1477                'widget_mode_expr': '',
1478                'display_width': 10,
1479                'size_max': 10,
1480            },
1481        },###)
1482        'jamb_id' : jamb_id,
1483    },
1484   'layout': {
[166]1485        'style_prefix': 'layout_sc_',
[164]1486        'flexible_widgets': (),
1487        'ncols': 1,
1488        'rows': [
1489            #[{'widget_id': 'sc_id', 'ncols': 1},],
1490            [{'widget_id': 'sc_value', 'ncols': 1},],
1491            [{'widget_id': 'sc_pin', 'ncols': 1},],
1492            [{'widget_id': 'jamb_id', 'ncols': 1},],
1493            #[{'widget_id': 'lastname', 'ncols': 1},],
1494        ]
1495    },
1496}
1497###)
1498
[68]1499admission_status = { ###(
[133]1500    'widgets': {
[68]1501       'quick_search': {
1502            'type': 'String Widget',
[47]1503            'data': {
[68]1504                'title': 'A search string',
1505                'fields': ('admission_sc_id',),
1506                'is_required': False,
1507                'label': 'Quick Search',
1508                'label_edit': 'Quick Search',
1509                'description': 'Search',
1510                'help': '',
[47]1511                'is_i18n': False,
1512                'readonly_layout_modes': (),
1513                'hidden_layout_modes': (),
1514                'hidden_readonly_layout_modes': (),
1515                'hidden_empty': False,
[68]1516                'hidden_if_expr': 'python:0',
[47]1517                'css_class': '',
1518                'widget_mode_expr': '',
[68]1519                'display_width': 20,
1520                'size_max': 0,
[47]1521            },
1522        },
[68]1523
[47]1524    },
1525   'layout': {
[68]1526        'style_prefix': 'layout_admission_status_',
[47]1527        'flexible_widgets': (),
[68]1528        'ncols': 2,
[47]1529        'rows': [
[68]1530            [{'widget_id': 'quick_search', 'ncols': 2},],
[47]1531        ]
1532    },
1533}
1534###)
1535
[57]1536jamb_widgets = { ###(
[49]1537        'reg_nr': {
1538            'type': 'StudentId Widget',
1539            'data': {
[76]1540                'title': 'registration nr',
[49]1541                'fields': ('reg_nr',),
1542                'is_required': True,
[133]1543                'label': 'Registration Nr',
1544                'label_edit': 'Registration Nr',
1545                'description': 'The student id from JAMB',
[177]1546                'help': 'The Student ID from JAMB',
[49]1547                'is_i18n': False,
[57]1548                'display_width': 10,
1549                'size_max': 10,
1550            },
1551        },
[76]1552        'firstname': firstname,
1553        'middlename': middlename,
1554        'lastname': lastname,
[49]1555        'age': {
1556            'type': 'Int Widget',
1557            'data': {
1558                'title': '',
1559                'fields': ('age',),
1560                'is_required': False,
1561                'label': 'Age',
1562                'label_edit': 'Age',
1563                'description': '',
1564                'help': '',
1565                'is_i18n': False,
1566                'readonly_layout_modes': (),
1567                'hidden_layout_modes': (),
1568                'hidden_readonly_layout_modes': (),
1569                'hidden_empty': False,
1570                'hidden_if_expr': '',
1571                'css_class': '',
1572                'widget_mode_expr': '',
1573                'display_width': 2,
1574                'size_max': 2,
1575            },
1576        },
[76]1577        'sex': sex,
[49]1578        'state': {
[57]1579            'type': 'Select Widget',
[49]1580            'data': {
1581                'title': '',
[57]1582                'fields': ('state',),
[49]1583                'is_required': False,
[133]1584                'label': 'State of Origin',
1585                'label_edit': 'State of Origin',
[49]1586                'description': '',
1587                'help': '',
1588                'is_i18n': False,
[57]1589                'vocabulary': 'nigerian_states',
[49]1590            },
1591        },
1592        'exam_results': {
1593            'type': 'String Widget',
1594            'data': {
1595                'title': '',
1596                'fields': ('exam_results',),
1597                'is_required': False,
[133]1598                'label': 'JAMB Results',
1599                'label_edit': 'JAMB Results',
[49]1600                'description': '',
1601                'help': '',
1602                'is_i18n': False,
1603                'readonly_layout_modes': (),
1604                'hidden_layout_modes': (),
1605                'hidden_readonly_layout_modes': (),
1606                'hidden_empty': False,
1607                'hidden_if_expr': '',
1608                'css_class': '',
1609                'widget_mode_expr': '',
1610                'display_width': 20,
1611                'size_max': 0,
1612            },
1613        },
1614        'aggregate': {
[57]1615            'type': 'Int Widget',
[49]1616            'data': {
1617                'title': 'Agregate',
1618                'fields': ('aggregate',),
1619                'is_required': False,
[57]1620                'label': 'Score',
1621                'label_edit': 'Score',
[49]1622                'description': '',
1623                'help': '',
1624                'is_i18n': False,
1625            },
1626        },
[57]1627        'faculty': {
1628            'type': 'Select Widget',
[49]1629            'data': {
[57]1630                'title': 'Faculty',
1631                'fields': ('faculty',),
[106]1632                'is_required': True,
[133]1633                'label': 'Faculty',
1634                'label_edit': 'Faculty',
[49]1635                'description': '',
[57]1636                'help': '',
[49]1637                'is_i18n': False,
[173]1638                'vocabulary': 'get_faculties_voc',
[49]1639            },
1640        },
[106]1641        'course': {
[173]1642            'type': 'Select Widget',
[106]1643            'data': {
1644                'title': 'Study Course',
1645                'fields': ('course',),
1646                'is_required': True,
1647                'label': 'Study Course',
1648                'label_edit': 'Study Course',
1649                'description': '',
[177]1650                'help': '',
[173]1651                'vocabulary': 'get_departments_voc',
[106]1652                'is_i18n': False,
1653            },
1654        },
[57]1655        'listing_date': {
1656            'type': 'Date Widget',
[49]1657            'data': {
[57]1658                'title': 'Listing Date',
1659                'fields': ('listing_date',),
[49]1660                'is_required': False,
[57]1661                'label': 'Listing Date',
1662                'label_edit': 'Listing Date',
1663                'description': '',
1664                'help': '',
[49]1665                'is_i18n': False,
1666                'readonly_layout_modes': (),
1667                'hidden_layout_modes': (),
1668                'hidden_readonly_layout_modes': (),
1669                'hidden_empty': False,
1670                'hidden_if_expr': '',
1671                'css_class': '',
1672                'widget_mode_expr': '',
[57]1673                'display_width': 3,
[49]1674                'size_max': 0,
1675            },
1676        },
[57]1677##        '2nd_choice': { ###(
1678##            'type': 'String Widget',
1679##            'data': {
1680##                'title': 'Second choice',
1681##                'fields': ('2nd_choice',),
1682##                'is_required': False,
1683##                'label': 'Second choice',
1684##                'label_edit': 'Second choice',
1685##                'description': '',
1686##                'help': 'second_choice',
1687##                'is_i18n': False,
1688##                'readonly_layout_modes': (),
1689##                'hidden_layout_modes': (),
1690##                'hidden_readonly_layout_modes': (),
1691##                'hidden_empty': False,
1692##                'hidden_if_expr': '',
1693##                'css_class': '',
1694##                'widget_mode_expr': '',
1695##                'display_width': 20,
1696##                'size_max': 0,
1697##            },
1698##        },
[133]1699##
[57]1700##        '3rd_choice': {
1701##            'type': 'String Widget',
1702##            'data': {
1703##                'title': 'Third_choice',
1704##                'fields': ('3rd_choice',),
1705##                'is_required': False,
1706##                'label': 'Third choice',
1707##                'label_edit': 'Third choice',
1708##                'description': 'third_choice',
1709##                'help': 'third_choice',
1710##                'is_i18n': False,
1711##                'readonly_layout_modes': (),
1712##                'hidden_layout_modes': (),
1713##                'hidden_readonly_layout_modes': (),
1714##                'hidden_empty': False,
1715##                'hidden_if_expr': '',
1716##                'css_class': '',
1717##                'widget_mode_expr': '',
1718##                'display_width': 20,
1719##                'size_max': 0,
1720##            },
1721##        },
1722###)
1723
[49]1724        'sc_id': {
1725            'type': 'String Widget',
1726            'data': {
1727                'title': '',
1728                'fields': ('admission_sc_id',),
1729                'is_required': False,
1730                'label': 'Scratch card ID used',
1731                'label_edit': 'Scratch card ID used',
1732                'description': '',
1733                'help': '',
1734                'is_i18n': False,
1735                'readonly_layout_modes': (),
1736                'hidden_layout_modes': (),
1737                'hidden_readonly_layout_modes': (),
1738                'hidden_empty': False,
1739                'hidden_if_expr': '',
1740                'css_class': '',
1741                'widget_mode_expr': '',
1742                'display_width': 20,
1743                'size_max': 0,
1744            },
1745        },
1746        'sc_pin': {
1747            'type': 'String Widget',
1748            'data': {
1749                'title': '',
1750                'fields': ('admission_sc_pin',),
1751                'is_required': False,
[151]1752                'label': 'Scratch Card PIN',
1753                'label_edit': 'Scratch Card PIN',
[49]1754                'description': '',
1755                'help': '',
1756                'is_i18n': False,
1757                'readonly_layout_modes': (),
1758                'hidden_layout_modes': (),
1759                'hidden_readonly_layout_modes': (),
1760                'hidden_empty': False,
1761                'hidden_if_expr': '',
1762                'css_class': '',
1763                'widget_mode_expr': '',
1764                'display_width': 20,
1765                'size_max': 0,
1766            },
1767        },
[57]1768    }
1769###)
1770
1771jamb_layoutcreate = { ###(
1772    'widgets': jamb_widgets,
[49]1773    'layout': {
1774        'style_prefix': 'layout_jambcreate_',
1775        'flexible_widgets': (),
1776        'ncols': 1,
1777        'rows': [
1778            [{'widget_id': 'reg_nr', 'ncols': 1},],
[57]1779            [{'widget_id': 'firstname', 'ncols': 1},],
1780            [{'widget_id': 'middlename', 'ncols': 1},],
1781            [{'widget_id': 'lastname', 'ncols': 1},],
[49]1782            #[{'widget_id': 'sc_id', 'ncols': 1},],
1783            #[{'widget_id': 'sc_pin', 'ncols': 1},],
1784            [{'widget_id': 'age', 'ncols': 1},],
1785            [{'widget_id': 'sex', 'ncols': 1},],
1786            [{'widget_id': 'state', 'ncols': 1},],
[57]1787            #[{'widget_id': 'exam_results', 'ncols': 1},],
[49]1788            [{'widget_id': 'aggregate', 'ncols': 1},],
[57]1789            [{'widget_id': 'faculty', 'ncols': 1},],
[106]1790            [{'widget_id': 'course', 'ncols': 1},],
[57]1791            [{'widget_id': 'listing_date', 'ncols': 1},],
1792            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1793            #[{'widget_id': '3rd_choice', 'ncols': 1},],
[49]1794        ]
1795    },
1796}
1797###)
1798
[47]1799jamb_layout = { ###(
[57]1800    'widgets': jamb_widgets,
[19]1801    'layout': {
[76]1802        'style_prefix': 'layout_waeup_',
[19]1803        'flexible_widgets': (),
1804        'ncols': 1,
1805        'rows': [
1806            [{'widget_id': 'reg_nr', 'ncols': 1},],
[57]1807            [{'widget_id': 'firstname', 'ncols': 1},],
1808            [{'widget_id': 'middlename', 'ncols': 1},],
1809            [{'widget_id': 'lastname', 'ncols': 1},],
1810            #[{'widget_id': 'sc_id', 'ncols': 1},],
[76]1811            [{'widget_id': 'sc_pin', 'ncols': 1},],
[19]1812            [{'widget_id': 'age', 'ncols': 1},],
1813            [{'widget_id': 'sex', 'ncols': 1},],
1814            [{'widget_id': 'state', 'ncols': 1},],
[57]1815            #[{'widget_id': 'exam_results', 'ncols': 1},],
[19]1816            [{'widget_id': 'aggregate', 'ncols': 1},],
[57]1817            [{'widget_id': 'faculty', 'ncols': 1},],
[106]1818            [{'widget_id': 'course', 'ncols': 1},],
[57]1819            [{'widget_id': 'listing_date', 'ncols': 1},],
1820            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1821            #[{'widget_id': '3rd_choice', 'ncols': 1},],
[19]1822        ]
1823    },
1824}
[47]1825###)
[19]1826
[164]1827admission_slip = { ###(
1828    'widgets': jamb_widgets,
1829    'layout': {
1830        'style_prefix': 'layout_waeup_',
1831        'flexible_widgets': (),
1832        'ncols': 1,
1833        'rows': [
1834            [{'widget_id': 'reg_nr', 'ncols': 1},],
1835            [{'widget_id': 'firstname', 'ncols': 1},],
1836            [{'widget_id': 'middlename', 'ncols': 1},],
1837            [{'widget_id': 'lastname', 'ncols': 1},],
1838            #[{'widget_id': 'sc_id', 'ncols': 1},],
1839            #[{'widget_id': 'sc_pin', 'ncols': 1},],
1840            [{'widget_id': 'age', 'ncols': 1},],
1841            [{'widget_id': 'sex', 'ncols': 1},],
1842            [{'widget_id': 'state', 'ncols': 1},],
1843            #[{'widget_id': 'exam_results', 'ncols': 1},],
1844            [{'widget_id': 'aggregate', 'ncols': 1},],
1845            [{'widget_id': 'faculty', 'ncols': 1},],
1846            [{'widget_id': 'course', 'ncols': 1},],
1847            [{'widget_id': 'listing_date', 'ncols': 1},],
1848            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1849            #[{'widget_id': '3rd_choice', 'ncols': 1},],
1850        ]
1851    },
1852}
1853###)
1854
[68]1855course = { ###(
1856    'widgets': {
[103]1857        'heading': {
[144]1858         'type': 'String Widget',
[103]1859         'data': {
1860                'fields': ['heading'],
1861                'is_i18n': 0,
1862                'is_required': 1,
[139]1863                'label': 'Title',
[103]1864                'label_edit': 'Title',
1865                'help': 'Course Title',
1866                'display_width': 40,
1867                'size_max': 40,
1868            },
1869        },
[96]1870        'text': Text,
[68]1871        'level': {
[103]1872            'type': 'Select Widget',
[68]1873            'data': {
1874                'title': '',
1875                'fields': ('level',),
1876                'is_required': True,
1877                'label': 'Level',
1878                'label_edit': 'Level',
1879                'description': '',
1880                'help': '',
1881                'is_i18n': False,
[103]1882                'vocabulary': 'courselevel',
[68]1883            },
1884        },
1885        'code': {
1886            'type': 'String Widget',
1887            'data': {
1888                'title': 'Code',
1889                'fields': ('code',),
1890                'is_required': True,
1891                'label': 'Code',
1892                'label_edit': 'Code',
1893                'description': '',
1894                'help': '',
1895                'is_i18n': False,
1896                'display_width': 10,
1897                'size_max': 0,
1898            },
1899        },
1900        'semester': {
1901            'type': 'Boolean Widget',
1902            'data': {
1903                'title': '',
1904                'fields': ('semester',),
1905                'is_required': True,
1906                'label': 'Semester',
1907                'label_edit': 'Semester',
1908                'label_false': 'Second Semester',
1909                'label_true': 'First Semester',
1910                'description': '',
1911                'help': '',
1912                'is_i18n': False,
1913                'display_width': 10,
1914                'size_max': 0,
1915            },
1916        },
1917        'credit': {
1918            'type': 'Int Widget',
1919            'data': {
1920                'title': '',
1921                'fields': ('credit',),
1922                'is_required': True,
1923                'label': 'Credit',
1924                'label_edit': 'Credit',
1925                'description': '',
1926                'help': '',
1927                'is_i18n': False,
[78]1928                'display_width': 2,
[68]1929                'size_max': 0,
1930            },
1931        },
1932        'core_elective': {
1933            'type': 'Boolean Widget',
1934            'data': {
1935                'title': '',
1936                'fields': ('core_elective',),
1937                'is_required': True,
1938                'label': 'Core or elective',
1939                'label_edit': 'Core or elective',
1940                'label_true': 'Core Course',
1941                'label_false': 'Elective Course',
1942                'description': '',
1943                'help': '',
1944                'is_i18n': False,
1945                'display_width': 10,
1946                'size_max': 0,
1947            },
1948        },
1949    },
1950   'layout': {
[84]1951        'style_prefix': 'layout_waeup_',
[68]1952        'flexible_widgets': (),
1953        'ncols': 1,
1954        'rows': [
[144]1955            [{'widget_id': 'heading', 'ncols': 1},],
1956            #[{'widget_id': 'Title', 'ncols': 1},],
[96]1957            [{'widget_id': 'text', 'ncols': 1},],
[68]1958            [{'widget_id': 'level', 'ncols': 1},],
1959            [{'widget_id': 'code', 'ncols': 1},],
1960            [{'widget_id': 'semester', 'ncols': 1},],
1961            [{'widget_id': 'credit', 'ncols': 1},],
1962            [{'widget_id': 'core_elective', 'ncols': 1},],
1963        ]
1964    },
1965}
1966###)
1967
[139]1968course_results = { ###(
1969    'widgets': {
1970        'points': {
1971            'type': 'Int Widget',
1972            'data': {
1973                'title': '',
1974                'fields': ('points',),
1975                'is_required': False,
1976                'label': 'Points',
1977                'label_edit': 'Points',
1978                'description': '',
1979                'help': '',
1980                'is_i18n': False,
1981                'readonly_layout_modes': (),
1982                'hidden_layout_modes': (),
1983                'hidden_readonly_layout_modes': (),
1984                'hidden_empty': False,
1985                'hidden_if_expr': '',
1986                'css_class': '',
1987                'widget_mode_expr': '',
1988                'display_width': 3,
1989                'size_max': 3,
1990            },
1991        },
1992        'grade': {
1993            'type': 'String Widget',
1994            'data': {
1995                'title': '',
1996                'fields': ('grade'),
1997                'is_required': False,
1998                'label': 'Grade',
1999                'label_edit': 'Grade',
2000                'description': '',
2001                'help': '',
2002                'is_i18n': False,
2003                'readonly_layout_modes': (),
2004                'hidden_layout_modes': (),
2005                'hidden_readonly_layout_modes': (),
2006                'hidden_empty': False,
2007                'hidden_if_expr': '',
2008                'css_class': '',
2009                'widget_mode_expr': '',
2010                'display_width': 2,
2011                'size_max': 1,
2012            },
2013        },
2014    },
2015   'layout': {
[169]2016        'style_prefix': 'layout_waeup_',
[139]2017        'flexible_widgets': (),
2018        'ncols': 1,
2019        'rows': [
2020            [{'widget_id': 'points', 'ncols': 1},],
2021            [{'widget_id': 'grade', 'ncols': 1},],
2022        ]
2023    },
2024}
2025###)
2026
[103]2027accommodation = { ###(
[101]2028    'widgets': {
[103]2029        'heading': {
[144]2030         'type': 'String Widget',
[103]2031         'data': {
2032                'fields': ['heading'],
[139]2033                'level': 2,
[103]2034                'is_i18n': 0,
2035                'is_required': 1,
[139]2036                'label': 'Hall Name',
[133]2037                'label_edit': 'Hall Name',
[103]2038                'help': '',
2039                'display_width': 40,
2040                'size_max': 40,
2041            },
2042        },
[101]2043        'text': Text,
[103]2044        'which_sex': {
2045            'type': 'Boolean Widget',
[101]2046            'data': {
2047                'title': '',
[103]2048                'fields': ('which_sex',),
2049                'is_required': False,
[133]2050                'label': 'Sex',
2051                'label_edit': 'Sex',
[103]2052                'label_false': 'male',
2053                'label_true': 'female',
[101]2054                'description': '',
2055                'help': '',
2056                'is_i18n': False,
2057            },
2058        },
[103]2059        'nr_of_blocks': {
2060            'type': 'Select Widget',
[101]2061            'data': {
[103]2062                'title': '',
2063                'fields': ('nr_of_blocks',),
[101]2064                'is_required': True,
[103]2065                'label': 'Nr of Blocks',
2066                'label_edit': 'Nr of Blocks',
[101]2067                'description': '',
[177]2068                'help': '',
[101]2069                'is_i18n': False,
[103]2070                'vocabulary': 'range10',
[101]2071            },
2072        },
[103]2073        'nr_of_floors': {
2074            'type': 'Select Widget',
[101]2075            'data': {
2076                'title': '',
[103]2077                'fields': ('nr_of_floors',),
[101]2078                'is_required': True,
[103]2079                'label': 'Nr of Floors ',
2080                'label_edit': 'Nr of Floors',
[101]2081                'description': '',
[177]2082                'help': '',
[101]2083                'is_i18n': False,
[103]2084                'vocabulary': 'range5',
[101]2085            },
2086        },
[103]2087        'rooms_per_floor': {
2088            'type': 'Select Widget',
[101]2089            'data': {
2090                'title': '',
[103]2091                'fields': ('rooms_per_floor',),
[101]2092                'is_required': True,
[103]2093                'label': 'Rooms per Floor',
2094                'label_edit': 'Rooms per Floor',
[101]2095                'description': '',
[177]2096                'help': '',
[101]2097                'is_i18n': False,
[103]2098                'vocabulary': 'range50',
[101]2099            },
2100        },
[103]2101        'beds_per_room': {
2102            'type': 'Select Widget',
[101]2103            'data': {
2104                'title': '',
[103]2105                'fields': ('beds_per_room',),
[101]2106                'is_required': True,
[103]2107                'label': 'Beds per Room',
2108                'label_edit': 'Beds per Room',
[101]2109                'description': '',
[177]2110                'help': '',
[101]2111                'is_i18n': False,
[103]2112                'vocabulary': 'range10',
[101]2113            },
2114        },
[107]2115        'beds_assigned': {
2116            'type': 'Int Widget',
2117            'data': {
2118                'title': '',
2119                'fields': ('beds_assigned',),
2120                'is_required': True,
2121                'label': 'Assigned Beds',
[133]2122                'label_edit': 'Assigned Beds',
[107]2123                'description': '',
[178]2124                'help': 'Number of beds already assigned to students',
[107]2125                'is_i18n': False,
2126            },
2127        },
[101]2128    },
2129   'layout': {
2130        'style_prefix': 'layout_waeup_',
2131        'flexible_widgets': (),
2132        'ncols': 1,
2133        'rows': [
[144]2134            [{'widget_id': 'heading', 'ncols': 1},],
2135            #[{'widget_id': 'Title', 'ncols': 1},],
[101]2136            [{'widget_id': 'text', 'ncols': 1},],
[103]2137            [{'widget_id': 'which_sex', 'ncols': 1},],
2138            [{'widget_id': 'nr_of_blocks', 'ncols': 1},],
2139            [{'widget_id': 'nr_of_floors', 'ncols': 1},],
2140            [{'widget_id': 'rooms_per_floor', 'ncols': 1},],
2141            [{'widget_id': 'beds_per_room', 'ncols': 1},],
[107]2142            [{'widget_id': 'beds_assigned', 'ncols': 1},],
[101]2143        ]
2144    },
2145}
2146###)
2147
[164]2148study_level = { ###(
2149    'widgets': {
2150      'sc_id': { ###(
2151        'type': 'String Widget',
2152        'data': {
2153                'title': 'SC ID',
2154                'fields': ('sc_id'),
2155                'is_required': False,
2156                'label': 'Card Serial Number ',
2157                'label_edit': 'Card Serial Number',
2158                'description': 'Card Serial Number ',
2159                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
2160                'is_i18n': False,
2161                'readonly_layout_modes': (),
2162                'hidden_layout_modes': (),
2163                'hidden_readonly_layout_modes': (),
2164                'hidden_empty': False,
2165                'hidden_if_expr': 'python:1',
2166                'css_class': '',
2167                'widget_mode_expr': '',
2168                'display_width': 10,
2169                'size_max': 0,
2170            }
2171        },###)
2172      'sc_pin': { ###(
[178]2173         'type': 'Scratchcard Pin Widget',
[164]2174         'data': {
[177]2175                'title': 'SC PIN',
[164]2176                'fields': ('sc_pin'),
2177                'is_required': True,
[178]2178                'label': 'Enter  PIN',
2179                'label_edit': 'Enter Scratchcard Pin with the value above',
[164]2180                'description': '',
[178]2181                'help': 'Please enter a Scratchcard Pin valid for Registration of Next Level',
[164]2182                'is_i18n': False,
2183                'readonly_layout_modes': (),
2184                'hidden_layout_modes': (),
2185                'hidden_readonly_layout_modes': (),
2186                'hidden_empty': False,
2187                'hidden_if_expr': '',
2188                'css_class': '',
2189                'widget_mode_expr': '',
2190                'display_width': 10,
2191                'size_max': 10,
2192            },
2193        },###)
2194      'sc_value': { ###(
2195         'type': 'Float Widget',
2196         'data': {
2197                'title': 'Scratch card value',
2198                'fields': ('sc_value',),
2199                'is_required': False,
2200                'label': 'Scratcard Value',
2201                'label_edit': 'Scratcard Value',
2202                'description': '',
2203                'help': '',
2204                'is_i18n': False,
2205                'readonly_layout_modes': ('create'),
2206                'hidden_layout_modes': (),
2207                'hidden_readonly_layout_modes': (),
2208                'hidden_empty': False,
2209                'hidden_if_expr': '',
2210                'css_class': '',
2211                'widget_mode_expr': '',
2212                'display_width': 10,
2213                'size_max': 10,
2214            },
2215        },###)
2216               },
2217   'layout': {
2218        'style_prefix': 'layout_slregister_',
2219        'flexible_widgets': (),
2220        'ncols': 1,
2221        'rows': [
2222            #[{'widget_id': 'sc_id', 'ncols': 1},],
2223            [{'widget_id': 'sc_value', 'ncols': 1},],
2224            [{'widget_id': 'sc_pin', 'ncols': 1},],
2225        ]
2226    },
2227}###)
2228
[139]2229accobook = { ###(
2230    'widgets': {
[164]2231     'sc_id': { ###(
2232        'type': 'String Widget',
2233        'data': {
[139]2234                'title': 'SC ID',
[166]2235                'fields': ('sc_id'),
[139]2236                'is_required': False,
2237                'label': 'Card Serial Number ',
2238                'label_edit': 'Card Serial Number',
2239                'description': 'Card Serial Number ',
2240                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
2241                'is_i18n': False,
2242                'readonly_layout_modes': (),
2243                'hidden_layout_modes': (),
2244                'hidden_readonly_layout_modes': (),
2245                'hidden_empty': False,
2246                'hidden_if_expr': 'python:1',
2247                'css_class': '',
2248                'widget_mode_expr': '',
2249                'display_width': 10,
2250                'size_max': 0,
[164]2251            }
2252        },###)
[166]2253    'sc_pin': { ###(
[178]2254         'type': 'Scratchcard Pin Widget',
[164]2255         'data': {
[177]2256                'title': 'SC PIN',
[166]2257                'fields': ('sc_pin'),
[139]2258                'is_required': True,
[164]2259                'label': 'enter  PIN',
[178]2260                'label_edit': 'Enter an Accommodation PIN',
[139]2261                'description': '',
[178]2262                'help': 'Enter a PIN valid for Accomodation Booking',
[139]2263                'is_i18n': False,
2264                'readonly_layout_modes': (),
2265                'hidden_layout_modes': (),
2266                'hidden_readonly_layout_modes': (),
2267                'hidden_empty': False,
2268                'hidden_if_expr': '',
2269                'css_class': '',
2270                'widget_mode_expr': '',
2271                'display_width': 10,
2272                'size_max': 10,
2273            },
[164]2274        },###)
[166]2275    'sc_value': { ###(
[164]2276         'type': 'Float Widget',
2277         'data': {
2278                'title': 'Scratch card value',
[166]2279                'fields': ('sc_value',),
[164]2280                'is_required': False,
2281                'label': 'SC Value',
2282                'label_edit': 'Scratcard Value',
2283                'description': '',
2284                'help': '',
2285                'is_i18n': False,
2286                'readonly_layout_modes': ('create'),
2287                'hidden_layout_modes': (),
2288                'hidden_readonly_layout_modes': (),
2289                'hidden_empty': False,
2290                'hidden_if_expr': '',
2291                'css_class': '',
2292                'widget_mode_expr': '',
2293                'display_width': 10,
2294                'size_max': 10,
2295            },
2296        },###)
2297               },
[139]2298   'layout': {
[166]2299        'style_prefix': 'layout_sc_',
[139]2300        'flexible_widgets': (),
2301        'ncols': 1,
2302        'rows': [
2303            #[{'widget_id': 'sc_id', 'ncols': 1},],
[164]2304            [{'widget_id': 'sc_value', 'ncols': 1},],
[139]2305            [{'widget_id': 'sc_pin', 'ncols': 1},],
2306        ]
2307    },
2308}
2309###)
2310
[166]2311accopay = { ###(
2312    'widgets': {
2313     'sc_id': { ###(
2314        'type': 'String Widget',
2315        'data': {
2316                'title': 'SC ID',
2317                'fields': ('sc_id'),
2318                'is_required': False,
2319                'label': 'Card Serial Number ',
2320                'label_edit': 'Card Serial Number',
2321                'description': 'Card Serial Number ',
2322                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
2323                'is_i18n': False,
2324                'readonly_layout_modes': (),
2325                'hidden_layout_modes': (),
2326                'hidden_readonly_layout_modes': (),
2327                'hidden_empty': False,
2328                'hidden_if_expr': 'python:1',
2329                'css_class': '',
2330                'widget_mode_expr': '',
2331                'display_width': 10,
2332                'size_max': 0,
2333            }
2334        },###)
2335    'sc_pin': { ###(
[178]2336         'type': 'Scratchcard Pin Widget',
[166]2337         'data': {
[177]2338                'title': 'SC PIN',
[166]2339                'fields': ('sc_pin'),
2340                'is_required': True,
2341                'label': 'enter  PIN',
[178]2342                'label_edit': 'Enter Hostel Payment PIN',
[166]2343                'description': '',
[178]2344                'help': 'Enter PIN valid for Paying Hostel Fee',
[166]2345                'is_i18n': False,
2346                'readonly_layout_modes': (),
2347                'hidden_layout_modes': (),
2348                'hidden_readonly_layout_modes': (),
2349                'hidden_empty': False,
2350                'hidden_if_expr': '',
2351                'css_class': '',
2352                'widget_mode_expr': '',
2353                'display_width': 10,
2354                'size_max': 10,
2355            },
2356        },###)
2357    'sc_value': { ###(
2358         'type': 'Float Widget',
2359         'data': {
2360                'title': 'Scratch card value',
2361                'fields': ('sc_value',),
2362                'is_required': False,
2363                'label': 'SC Value',
2364                'label_edit': 'Scratcard Value',
2365                'description': '',
2366                'help': '',
2367                'is_i18n': False,
2368                'readonly_layout_modes': ('create'),
2369                'hidden_layout_modes': (),
2370                'hidden_readonly_layout_modes': (),
2371                'hidden_empty': False,
2372                'hidden_if_expr': '',
2373                'css_class': '',
2374                'widget_mode_expr': '',
2375                'display_width': 10,
2376                'size_max': 10,
2377            },
2378        },###)
2379               },
2380   'layout': {
2381        'style_prefix': 'layout_sc_',
2382        'flexible_widgets': (),
2383        'ncols': 1,
2384        'rows': [
2385            #[{'widget_id': 'sc_id', 'ncols': 1},],
2386            [{'widget_id': 'sc_value', 'ncols': 1},],
2387            [{'widget_id': 'sc_pin', 'ncols': 1},],
2388        ]
2389    },
2390}###)
2391
[47]2392layouts = {}
[96]2393layouts['university'] = common_layout
[47]2394layouts['waeup_common'] = common_layout
2395layouts['student'] = student_layout
[141]2396layouts['study_level'] = study_level
[166]2397layouts['student_documents'] = student_documents
[47]2398layouts['student_personal'] = student_personal_layout
[179]2399layouts['student_personal_addon'] = student_personal_addon
[164]2400layouts['student_eligibility'] = student_eligibility
[182]2401layouts['student_eligibility_edit'] = student_eligibility_edit
[179]2402layouts['student_schoolresults'] = student_schoolresults
[133]2403layouts['accommodation'] = accommodation
2404layouts['accobook'] = accobook
[166]2405layouts['accopay'] = accopay
[47]2406layouts['scratch_card'] = scratch_card
2407layouts['admission'] = admission
[175]2408layouts['clearance'] = clearance
[164]2409layouts['admission_slip'] = admission_slip
[49]2410layouts['jambcreate'] = jamb_layoutcreate
[19]2411layouts['jamb'] = jamb_layout
[96]2412layouts['faculty'] = common_layout
2413layouts['department'] = common_layout
[68]2414layouts['course'] = course
2415layouts['admission_status'] = admission_status
[19]2416return layouts
Note: See TracBrowser for help on using the repository browser.