source: WAeUP_SRP/branches/srpp_branch/skins/waeup_default/getWAeUPLayouts.py @ 3008

Last change on this file since 3008 was 194, checked in by joachim, 19 years ago

=student list in hall display

  • Property svn:keywords set to Id
File size: 80.7 KB
Line 
1#-*- mode: python; mode: fold -*-
2##parameters=
3# $Id: getWAeUPLayouts.py 194 2005-11-19 18:15:02Z joachim $
4"""Return custom layouts types."""
5
6##def widget(type = 'String Widget',
7##            'data': {
8##                'title': '',
9##                'fields': ('nr_of_floors',),
10##                'is_required': True,
11##                'label': 'Nr of Floors ',
12##                'label_edit': 'Nr of Floors',
13##                'description': '',
14##                'help': 'Number of floors per block',
15##                'is_i18n': False,
16##                'readonly_layout_modes': [],
17##                'hidden_layout_modes': [],
18##                'hidden_readonly_layout_modes': [],
19##                'hidden_empty': 0,
20##                'hidden_if_expr': '',
21##                'widget_mode_expr': '',
22##                'css_class': '',
23##                'css_class_expr': '',
24##                'javascript_expr': '',
25##                'vocabulary': 'range5',
26##                'translated': False,
27##            },
28##        },
29
30Heading = { ###(
31         'type': 'Heading Widget',
32         'data': {
33                'fields': ['heading'],
34                'level': 1,
35                'is_i18n': 0,
36                'is_required': 1,
37                'label_edit': 'Headline',
38                'help': 'Short Headline',
39                'display_width': 40,
40                'size_max': 200,
41            },
42        }###)
43
44Text = { ###(
45            'type': 'Text Widget',
46            'data': {
47                'fields': ['text'],
48                'is_i18n': 1,
49                'label_edit': 'Text',
50                'label': 'Text',
51                'help': 'Short Description',
52                'css_class': 'description',
53                'width': 72,
54                'height': 5,
55                'render_format': 'text',
56                'hidden_layout_modes': (),
57            },
58        }###)
59
60Title = { ###(
61         'type': 'String Widget',
62         'data': {
63                'fields': ['Title'],
64                'is_i18n': 0,
65                'is_required': 1,
66                'label': 'Title',
67                'label_edit': 'Title',
68                'display_width': 40,
69                'size_max': 200,
70            },
71        }###)
72
73sc_id = { ###(
74        'type': 'String Widget',
75        'data': {
76                'title': 'SC ID',
77                'fields': ('sc_id'),
78                'is_required': False,
79                'label': 'Card Serial Number ',
80                'label_edit': 'Card Serial Number',
81                'description': 'Card Serial Number ',
82                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
83                'is_i18n': False,
84                'readonly_layout_modes': (),
85                'hidden_layout_modes': (),
86                'hidden_readonly_layout_modes': (),
87                'hidden_empty': False,
88                'hidden_if_expr': 'python:1',
89                'css_class': '',
90                'widget_mode_expr': '',
91                'display_width': 10,
92                'size_max': 0,
93            }
94        }
95###)
96
97sc_pin = { ###(
98         'type': 'Scratchcard Pin Widget',
99         'data': {
100                'title': 'SC PIN',
101                'fields': ('sc_pin'),
102                'is_required': True,
103                'label': 'enter  PIN',
104                'label_edit': 'Enter an Accommodation PIN',
105                'description': '',
106                'help': 'Please enter a PIN valid for Accomodation booking',
107                'is_i18n': False,
108                'readonly_layout_modes': (),
109                'hidden_layout_modes': (),
110                'hidden_readonly_layout_modes': (),
111                'hidden_empty': False,
112                'hidden_if_expr': '',
113                'css_class': '',
114                'widget_mode_expr': '',
115                'display_width': 10,
116                'size_max': 10,
117            },
118        }
119###)
120
121sc_value = { ###(
122         'type': 'Float Widget',
123         'data': {
124                'title': 'Scratch card value',
125                'fields': ('sc_value',),
126                'is_required': True,
127                'label': 'SC Value',
128                'label_edit': 'Scratcard Value',
129                'description': '',
130                'help': '',
131                'is_i18n': False,
132                'readonly_layout_modes': (),
133                'hidden_layout_modes': (),
134                'hidden_readonly_layout_modes': (),
135                'hidden_empty': False,
136                'hidden_if_expr': '',
137                'css_class': '',
138                'widget_mode_expr': '',
139                'display_width': 10,
140                'size_max': 10,
141            },
142        }
143###)
144
145Description = { ###(
146            'type': 'Text Widget',
147            'data': {
148                'fields': ['Description'],
149                'is_i18n': 1,
150                'label_edit': 'Description',
151                'label': 'Description',
152                'css_class': 'description',
153                'width': 72,
154                'height': 5,
155                'render_format': 'text',
156                'hidden_layout_modes': (),
157            },
158        }###)
159
160common_layout = {###(
161    'widgets': {
162        'LanguageSelector': {
163            'type': 'Document Language Select Widget',
164            'data': {
165                'fields': ['Language'],
166            },
167        },
168        'Title': Title,
169        'Description': Description,
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': {
192        'style_prefix': 'layout_waeup_',
193        'rows': [
194            #[{'widget_id': 'LanguageSelector'}],
195            [{'widget_id': 'Title'},],
196            [{'widget_id': 'Description'},],
197            #[{'widget_id': 'LanguageSelectorCreation'}],
198            ],
199        },
200    }
201#
202###)
203
204firstname = { ###(
205            'type': 'String Widget',
206            'data': {
207                'title': 'First Name',
208                'fields': ('firstname',),
209                'is_required': False,
210                'label': 'First Name',
211                'label_edit': 'First Name',
212                'description': 'First Name',
213                'help': '',
214                'is_i18n': False,
215                'display_width': 40,
216                },
217            }
218
219###)
220
221middlename = { ###(
222            'type': 'String Widget',
223            'data': {
224                'title': '',
225                'fields': ('middlename',),
226                'is_required': False,
227                'label': 'Middle Name',
228                'label_edit': 'Middle Name',
229                'description': '',
230                'help': '',
231                'is_i18n': False,
232                'readonly_layout_modes': (),
233                'hidden_layout_modes': (),
234                'hidden_readonly_layout_modes': (),
235                'hidden_empty': True,
236                'hidden_if_expr': '',
237                'css_class': '',
238                'widget_mode_expr': '',
239                'display_width': 40,
240                'size_max': 0,
241                },
242            }
243
244###)
245
246lastname = { ###(
247            'type': 'String Widget',
248            'data': {
249                'title': '',
250                'fields': ('lastname',),
251                'is_required': False,
252                'label': 'Surname',
253                'label_edit': 'Surname',
254                'description': '',
255                'help': '',
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': '',
264                'display_width': 40,
265                'size_max': 0,
266            },
267        }
268
269###)
270
271email = { ###(
272            'type': 'Email Widget',
273            'data': {
274                'title': 'Email',
275                'fields': ('email',),
276                'is_required': True,
277                'label': 'Email',
278                'label_edit': 'Email',
279                'description': '',
280                'help': '',
281                'is_i18n': False,
282                'display_width': 40,
283                },
284            }
285###)
286
287sex = { ###(
288            'type': 'Boolean Widget',
289            'data': {
290                'title': '',
291                'fields': ('sex',),
292                'is_required': False,
293                'label': 'Sex',
294                'label_edit': 'Sex',
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': '',
307                'display_width': 20,
308                'size_max': 0,
309            }
310        }
311
312###)
313
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': '',
323                'help': 'Enter a New Password',
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            },
343        }###)
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': '',
354                'help': 'Confirm the New Password',
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                },
365            }###)
366
367username_hidden = { ###(
368            'type': 'String Widget',
369            'data': {
370                'title': 'Username',
371                'fields': ('username',),
372                'hidden_layout_modes': ['create',],
373                },
374            }
375
376###)
377
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': {
472                'title': 'Accommodation SC PIN',
473                'fields': ('accommodation_sc_pin',),
474                'is_required': False,
475                'label': 'Accommodation SC PIN',
476                'label_edit': 'Accommodation SC PIN',
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': {
516                'title': 'Accommodation SC PIN',
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': {
560                'title': 'hostel_fee SC PIN',
561                'fields': ('hostel_fee_sc_pin',),
562                'is_required': False,
563                'label': 'Hostel Fee SC PIN',
564                'label_edit': 'Hostel Fee SC PIN',
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': {
604                'title': 'hostel_fee SC PIN',
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': {
648                'title': 'Admission check SC PIN',
649                'fields': ('adm_check_sc_pin',),
650                'is_required': False,
651                'label': 'Admission check SC PIN',
652                'label_edit': 'Admission check SC PIN',
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': {
692                'title': 'Admission check SC PIN',
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        },###)
711        'clearance_sc_id': { ###(
712            'type': 'String Widget',
713            'data': {
714                'title': 'Clearance SC ID',
715                'fields': ('clearance_sc_id',),
716                'is_required': False,
717                'label': 'Clearance SC ID',
718                'label_edit': 'Clearance SC ID',
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        },###)
733        'clearance_sc_pin': { ###(
734            'type': 'String Widget',
735            'data': {
736                'title': 'clearance SC PIN',
737                'fields': ('clearance_sc_pin',),
738                'is_required': False,
739                'label': 'Clearance SC PIN',
740                'label_edit': 'Clearance SC PIN',
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        },###)
755        'clearance_sc_value': { ###(
756            'type': 'Float Widget',
757            'data': {
758                'title': 'clearance SC Value',
759                'fields': ('clearance_sc_value',),
760                'is_required': False,
761                'label': 'Clearance SC Value',
762                'label_edit': 'Clearance SC Value',
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        },###)
777        'clearance_date': { ###(
778            'type': 'DateTime Widget',
779            'data': {
780                'title': 'clearance SC PIN',
781                'fields': ('clearance_date',),
782                'is_required': False,
783                'label': 'Clearance SC Date',
784                'label_edit': 'Clearance SC Date',
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': {
801        'style_prefix': 'layout_waeup_',
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},],
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},],
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
826student_personal_layout = { ###(
827    'widgets': {
828        'firstname': firstname,
829        'middlename': middlename,
830        'lastname': lastname,
831        'email': email,
832        'sex': sex,
833        'birthday': {
834            'type': 'Date Widget',
835            'data': {
836                'title': '',
837                'fields': ('birthday',),
838                'is_required': False,
839                'label': 'Day of birth',
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        },
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},],
864            [{'widget_id': 'email', 'ncols': 1},],
865            [{'widget_id': 'sex', 'ncols': 1},],
866            [{'widget_id': 'birthday', 'ncols': 1},],
867        ]
868    },
869}###)
870
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': [],
910                'hidden_layout_modes': ['create','edit'],
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
924eli_widgets = { ###(
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': 'String Widget',
949            'data': {
950                'title': 'Aggregate',
951                'fields': ('jamb_aggregate',),
952                'is_required': False,
953                'label': 'JAMB Score',
954                'label_edit': 'JAMB 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,
1011    }###)
1012
1013student_eligibility = { ###(
1014    'widgets': eli_widgets,
1015    'layout': {
1016        'style_prefix': 'layout_waeup_',
1017        'layout_edit_method': 'layout_eligibility_create',
1018        'layout_create_method': 'layout_eligibility_create',
1019        'flexible_widgets': (),
1020        'ncols': 1,
1021        'rows': [
1022            #[{'widget_id': 'jamb_results', 'ncols': 1},],
1023            [{'widget_id': 'jamb_aggregate', 'ncols': 1},],
1024            #[{'widget_id': 'jamb_listing_date', 'ncols': 1},],
1025            [{'widget_id': 'faculty', 'ncols': 1},],
1026            [{'widget_id': 'course', 'ncols': 1},],
1027            [{'widget_id': 'schoolresults', 'ncols': 1},],
1028        ]
1029    },
1030}###)
1031
1032student_eligibility_edit = { ###(
1033    'widgets': eli_widgets,
1034    'layout': {
1035        'style_prefix': 'layout_eligibility_',
1036        'flexible_widgets': (),
1037        'ncols': 1,
1038        'rows': [
1039            #[{'widget_id': 'jamb_results', 'ncols': 1},],
1040            [{'widget_id': 'jamb_aggregate', 'ncols': 1},],
1041            #[{'widget_id': 'jamb_listing_date', 'ncols': 1},],
1042            [{'widget_id': 'faculty', 'ncols': 1},],
1043            [{'widget_id': 'course', 'ncols': 1},],
1044            [{'widget_id': 'schoolresults', 'ncols': 1},],
1045        ]
1046    },
1047}###)
1048
1049student_schoolresults = { ###(
1050    'widgets': {
1051        'schoolresults': schoolresults,
1052    },
1053    'layout': {
1054        'style_prefix': 'layout_results_',
1055        'flexible_widgets': (),
1056        'ncols': 1,
1057        'rows': [
1058            #[{'widget_id': 'jamb_results', 'ncols': 1},],
1059            #[{'widget_id': 'jamb_aggregate', 'ncols': 1},],
1060            #[{'widget_id': 'jamb_listing_date', 'ncols': 1},],
1061            #[{'widget_id': 'faculty', 'ncols': 1},],
1062            #[{'widget_id': 'course', 'ncols': 1},],
1063            [{'widget_id': 'schoolresults', 'ncols': 1},],
1064        ]
1065    },
1066}###)
1067
1068student_documents = { ###(
1069    'widgets': {
1070        'photo': { ###(
1071            'type': 'Photo Widget',
1072            'data': {
1073                'title': '',
1074                'fields': ('photo',),
1075                'is_required': False,
1076                'label': 'Personal Picture',
1077                'label_edit': 'Personal Picture',
1078                'description': '',
1079                'help': '',
1080                'is_i18n': False,
1081                'readonly_layout_modes': (),
1082                'hidden_layout_modes': (),
1083                'hidden_readonly_layout_modes': (),
1084                'hidden_empty': False,
1085                'hidden_if_expr': '',
1086                'widget_mode_expr': '',
1087                'css_class': '',
1088                'css_class_expr': '',
1089                'javascript_expr': '',
1090                'deletable': True,
1091                'size_max': 204800,
1092                'display_width': 90,
1093                'display_height': 180,
1094                'allow_resize': True,
1095                'render_position': 'left',
1096                'configurable': 'nothing',
1097                'keep_original': 1,
1098            },
1099        },###)
1100        'birth_certificate': { ###(
1101            'type': 'Image Widget',
1102            'data': {
1103                'title': '',
1104                'fields': ('birth_certificate',),
1105                'is_required': False,
1106                'label': 'Birth Certificate',
1107                'label_edit': 'Birth Certificate',
1108                'description': '',
1109                'help': '',
1110                'is_i18n': False,
1111                'readonly_layout_modes': (),
1112                'hidden_layout_modes': (),
1113                'hidden_readonly_layout_modes': (),
1114                'hidden_empty': False,
1115                'hidden_if_expr': '',
1116                'widget_mode_expr': '',
1117                'css_class': '',
1118                'css_class_expr': '',
1119                'javascript_expr': '',
1120                'deletable': True,
1121                'size_max': 204800,
1122                'display_width': 300,
1123                'display_height':600,
1124                'allow_resize': True,
1125            },
1126        },###)
1127        'passport': { ###(
1128            'type': 'Image Widget',
1129            'data': {
1130                'title': '',
1131                'fields': ('passport',),
1132                'is_required': False,
1133                'label': 'Scanned Passport',
1134                'label_edit': 'Scanned Passport',
1135                'description': '',
1136                'help': '',
1137                'is_i18n': False,
1138                'readonly_layout_modes': (),
1139                'hidden_layout_modes': (),
1140                'hidden_readonly_layout_modes': (),
1141                'hidden_empty': False,
1142                'hidden_if_expr': '',
1143                'widget_mode_expr': '',
1144                'css_class': '',
1145                'css_class_expr': '',
1146                'javascript_expr': '',
1147                'deletable': True,
1148                'size_max': 204800,
1149                'display_width': 300,
1150                'display_height':600,
1151                'allow_resize': True,
1152            },
1153        },###)
1154        'results_first': { ###(
1155            'type': 'Image Widget',
1156            'data': {
1157                'title': '',
1158                'fields': ('results_first',),
1159                'is_required': False,
1160                'label': '1st Sitting Results',
1161                'label_edit': '1st Sitting Results',
1162                'description': '',
1163                'help': '',
1164                'is_i18n': False,
1165                'readonly_layout_modes': (),
1166                'hidden_layout_modes': (),
1167                'hidden_readonly_layout_modes': (),
1168                'hidden_empty': False,
1169                'hidden_if_expr': '',
1170                'widget_mode_expr': '',
1171                'css_class': '',
1172                'css_class_expr': '',
1173                'javascript_expr': '',
1174                'deletable': True,
1175                'size_max': 204800,
1176                'display_width': 300,
1177                'display_height':600,
1178                'allow_resize': True,
1179            },
1180        },###)
1181        'results_second': { ###(
1182            'type': 'Image Widget',
1183            'data': {
1184                'title': '',
1185                'fields': ('results_second',),
1186                'is_required': False,
1187                'label': '2nd Sitting Results',
1188                'label_edit': '2nd Sitting Results',
1189                'description': '',
1190                'help': '',
1191                'is_i18n': False,
1192                'readonly_layout_modes': (),
1193                'hidden_layout_modes': (),
1194                'hidden_readonly_layout_modes': (),
1195                'hidden_empty': False,
1196                'hidden_if_expr': '',
1197                'widget_mode_expr': '',
1198                'css_class': '',
1199                'css_class_expr': '',
1200                'javascript_expr': '',
1201                'deletable': True,
1202                'size_max': 40960,
1203                'display_width': 300,
1204                'display_height':600,
1205                'allow_resize': True,
1206            },
1207        },###)
1208    },
1209    'layout': {
1210        'style_prefix': 'layout_personal_',
1211        'flexible_widgets': (),
1212        'ncols': 1,
1213        'rows': [
1214            [{'widget_id': 'photo', 'ncols': 1},],
1215            [{'widget_id': 'birth_certificate', 'ncols': 1},],
1216            [{'widget_id': 'passport', 'ncols': 1},],
1217            [{'widget_id': 'results_first', 'ncols': 1},],
1218            [{'widget_id': 'results_second', 'ncols': 1},],
1219        ]
1220    },
1221}
1222
1223###)
1224
1225scratch_card = { ###(
1226    'widgets': {
1227        'sc_id': {
1228            'type': 'String Widget',
1229            'data': {
1230                'title': 'SC ID',
1231                'fields': ('sc_id',),
1232                'is_required': True,
1233                'label': 'Scratch card ID',
1234                'label_edit': 'Scratch card ID',
1235                'description': '',
1236                'help': '',
1237                'is_i18n': False,
1238                'readonly_layout_modes': (),
1239                'hidden_layout_modes': (),
1240                'hidden_readonly_layout_modes': (),
1241                'hidden_empty': False,
1242                'hidden_if_expr': '',
1243                'css_class': '',
1244                'widget_mode_expr': '',
1245                'display_width': 10,
1246                'size_max': 0,
1247            },
1248        },
1249        'sc_pin': {
1250            'type': 'Scratchcard Pin Widget',
1251            'data': {
1252                'title': 'SC PIN',
1253                'fields': ('sc_pin'),
1254                'is_required': True,
1255                'label': 'Scratchcard Pin',
1256                'label_edit': 'Scratchcard Pin',
1257                'description': '',
1258                'help': '',
1259                'is_i18n': False,
1260                'readonly_layout_modes': (),
1261                'hidden_layout_modes': (),
1262                'hidden_readonly_layout_modes': (),
1263                'hidden_empty': False,
1264                'hidden_if_expr': '',
1265                'css_class': '',
1266                'widget_mode_expr': '',
1267                'display_width': 10,
1268                'size_max': 10,
1269            },
1270        },
1271    },
1272   'layout': {
1273        'style_prefix': 'layout_waeup_',
1274        'flexible_widgets': (),
1275        'ncols': 1,
1276        'rows': [
1277            [{'widget_id': 'reg_nr', 'ncols': 1},],
1278            [{'widget_id': 'sc_pin', 'ncols': 1},],
1279        ]
1280    },
1281}
1282###)
1283
1284jamb_id = { ###(
1285           'type': 'StudentId Widget',
1286           'data': {
1287                'title': 'Registration Number',
1288                'fields': ('reg_nr'),
1289                'is_required': True,
1290                'label': 'Registration Number',
1291                'label_edit': 'Registration Number',
1292                'description': '',
1293                'help': 'This is the combination of 8 digits and 2 letters you are assigned when you purchase an examination form.',
1294                'is_i18n': False,
1295                'readonly_layout_modes': (),
1296                'hidden_layout_modes': (),
1297                'hidden_readonly_layout_modes': (),
1298                'hidden_empty': False,
1299                'hidden_if_expr': '',
1300                'css_class': '',
1301                'widget_mode_expr': '',
1302                'display_width': 10,
1303                'size_max': 10,
1304                 },
1305           }
1306
1307###)
1308
1309admission = { ###(
1310    'widgets': {
1311        'sc_id': {
1312            'type': 'String Widget',
1313            'data': {
1314                'title': 'SC ID',
1315                'fields': ('sc_id',),
1316                'is_required': False,
1317                'label': 'Card Serial Number ',
1318                'label_edit': 'Card Serial Number',
1319                'description': 'Card Serial Number ',
1320                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
1321                'is_i18n': False,
1322                'readonly_layout_modes': (),
1323                'hidden_layout_modes': (),
1324                'hidden_readonly_layout_modes': (),
1325                'hidden_empty': False,
1326                'hidden_if_expr': '',
1327                'css_class': '',
1328                'widget_mode_expr': '',
1329                'display_width': 10,
1330                'size_max': 0,
1331            },
1332        },
1333        'sc_value': { ###(
1334         'type': 'Float Widget',
1335         'data': {
1336                'title': 'Scratch card value',
1337                'fields': ('sc_value',),
1338                'is_required': False,
1339                'label': 'SC Value',
1340                'label_edit': 'Scratcard Value',
1341                'description': '',
1342                'help': '',
1343                'is_i18n': False,
1344                'readonly_layout_modes': ('create'),
1345                'hidden_layout_modes': (),
1346                'hidden_readonly_layout_modes': (),
1347                'hidden_empty': False,
1348                'hidden_if_expr': '',
1349                'css_class': '',
1350                'widget_mode_expr': '',
1351                'display_width': 10,
1352                'size_max': 10,
1353            },
1354        },###)
1355        'sc_pin': {
1356            'type': 'Scratchcard Pin Widget',
1357            'data': {
1358                'title': 'SC PIN',
1359                'fields': ('sc_pin'),
1360                'is_required': True,
1361                'label': 'PIN',
1362                'label_edit': 'PIN',
1363                'description': '',
1364                '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',
1365                'is_i18n': False,
1366                'readonly_layout_modes': (),
1367                'hidden_layout_modes': (),
1368                'hidden_readonly_layout_modes': (),
1369                'hidden_empty': False,
1370                'hidden_if_expr': '',
1371                'css_class': '',
1372                'widget_mode_expr': '',
1373                'display_width': 10,
1374                'size_max': 10,
1375            },
1376        },
1377        'jamb_id' : jamb_id,
1378    },
1379   'layout': {
1380        'style_prefix': 'layout_sc_',
1381        'flexible_widgets': (),
1382        'ncols': 1,
1383        'rows': [
1384            #[{'widget_id': 'sc_id', 'ncols': 1},],
1385            [{'widget_id': 'sc_value', 'ncols': 1},],
1386            [{'widget_id': 'sc_pin', 'ncols': 1},],
1387            [{'widget_id': 'jamb_id', 'ncols': 1},],
1388        ]
1389    },
1390}
1391###)
1392
1393clearance = { ###(
1394    'widgets': {
1395        'sc_id': {
1396            'type': 'String Widget',
1397            'data': {
1398                'title': 'SC ID',
1399                'fields': ('sc_id',),
1400                'is_required': False,
1401                'label': 'Card Serial Number ',
1402                'label_edit': 'Card Serial Number',
1403                'description': 'Card Serial Number ',
1404                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
1405                'is_i18n': False,
1406                'readonly_layout_modes': (),
1407                'hidden_layout_modes': (),
1408                'hidden_readonly_layout_modes': (),
1409                'hidden_empty': False,
1410                'hidden_if_expr': 'python:1',
1411                'css_class': '',
1412                'widget_mode_expr': '',
1413                'display_width': 10,
1414                'size_max': 0,
1415            },
1416        },
1417        'sc_pin': {
1418            'type': 'Scratchcard Pin Widget',
1419            'data': {
1420                'title': 'SC PIN',
1421                'fields': ('sc_pin'),
1422                'is_required': True,
1423                'label': 'PIN',
1424                'label_edit': 'PIN',
1425                'description': '',
1426                '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',
1427                'is_i18n': False,
1428                'readonly_layout_modes': (),
1429                'hidden_layout_modes': (),
1430                'hidden_readonly_layout_modes': (),
1431                'hidden_empty': False,
1432                'hidden_if_expr': '',
1433                'css_class': '',
1434                'widget_mode_expr': '',
1435                'display_width': 10,
1436                'size_max': 10,
1437            },
1438        },
1439        'sc_value': { ###(
1440         'type': 'Float Widget',
1441         'data': {
1442                'title': 'Scratch card value',
1443                'fields': ('sc_value',),
1444                'is_required': False,
1445                'label': 'SC Value',
1446                'label_edit': 'Scratcard Value',
1447                'description': '',
1448                'help': '',
1449                'is_i18n': False,
1450                'readonly_layout_modes': ('create'),
1451                'hidden_layout_modes': (),
1452                'hidden_readonly_layout_modes': (),
1453                'hidden_empty': False,
1454                'hidden_if_expr': '',
1455                'css_class': '',
1456                'widget_mode_expr': '',
1457                'display_width': 10,
1458                'size_max': 10,
1459            },
1460        },###)
1461        'lastname': { ###(
1462         'type': 'String Widget',
1463         'data': {
1464                'title': 'Scratch card value',
1465                'fields': ('lastname',),
1466                'is_required': False,
1467                'label': 'Surname',
1468                'label_edit': 'Surname',
1469                'description': '',
1470                'help': '',
1471                'is_i18n': False,
1472                'readonly_layout_modes': ('create'),
1473                'hidden_layout_modes': (),
1474                'hidden_readonly_layout_modes': (),
1475                'hidden_empty': False,
1476                'hidden_if_expr': '',
1477                'css_class': '',
1478                'widget_mode_expr': '',
1479                'display_width': 10,
1480                'size_max': 10,
1481            },
1482        },###)
1483        'jamb_id' : jamb_id,
1484    },
1485   'layout': {
1486        'style_prefix': 'layout_sc_',
1487        'flexible_widgets': (),
1488        'ncols': 1,
1489        'rows': [
1490            #[{'widget_id': 'sc_id', 'ncols': 1},],
1491            [{'widget_id': 'sc_value', 'ncols': 1},],
1492            [{'widget_id': 'sc_pin', 'ncols': 1},],
1493            [{'widget_id': 'jamb_id', 'ncols': 1},],
1494            #[{'widget_id': 'lastname', 'ncols': 1},],
1495        ]
1496    },
1497}
1498###)
1499
1500admission_status = { ###(
1501    'widgets': {
1502       'quick_search': {
1503            'type': 'String Widget',
1504            'data': {
1505                'title': 'A search string',
1506                'fields': ('admission_sc_id',),
1507                'is_required': False,
1508                'label': 'Quick Search',
1509                'label_edit': 'Quick Search',
1510                'description': 'Search',
1511                'help': '',
1512                'is_i18n': False,
1513                'readonly_layout_modes': (),
1514                'hidden_layout_modes': (),
1515                'hidden_readonly_layout_modes': (),
1516                'hidden_empty': False,
1517                'hidden_if_expr': 'python:0',
1518                'css_class': '',
1519                'widget_mode_expr': '',
1520                'display_width': 20,
1521                'size_max': 0,
1522            },
1523        },
1524
1525    },
1526   'layout': {
1527        'style_prefix': 'layout_admission_status_',
1528        'flexible_widgets': (),
1529        'ncols': 2,
1530        'rows': [
1531            [{'widget_id': 'quick_search', 'ncols': 2},],
1532        ]
1533    },
1534}
1535###)
1536
1537jamb_widgets = { ###(
1538        'reg_nr': {
1539            'type': 'StudentId Widget',
1540            'data': {
1541                'title': 'registration nr',
1542                'fields': ('reg_nr',),
1543                'is_required': True,
1544                'label': 'Registration Nr',
1545                'label_edit': 'Registration Nr',
1546                'description': 'The student id from JAMB',
1547                'help': 'The Student ID from JAMB',
1548                'is_i18n': False,
1549                'display_width': 10,
1550                'size_max': 10,
1551            },
1552        },
1553        'firstname': firstname,
1554        'middlename': middlename,
1555        'lastname': lastname,
1556        'age': {
1557            'type': 'Int Widget',
1558            'data': {
1559                'title': '',
1560                'fields': ('age',),
1561                'is_required': False,
1562                'label': 'Age',
1563                'label_edit': 'Age',
1564                'description': '',
1565                'help': '',
1566                'is_i18n': False,
1567                'readonly_layout_modes': (),
1568                'hidden_layout_modes': (),
1569                'hidden_readonly_layout_modes': (),
1570                'hidden_empty': False,
1571                'hidden_if_expr': '',
1572                'css_class': '',
1573                'widget_mode_expr': '',
1574                'display_width': 2,
1575                'size_max': 2,
1576            },
1577        },
1578        'sex': sex,
1579        'state': {
1580            'type': 'Select Widget',
1581            'data': {
1582                'title': '',
1583                'fields': ('state',),
1584                'is_required': False,
1585                'label': 'State of Origin',
1586                'label_edit': 'State of Origin',
1587                'description': '',
1588                'help': '',
1589                'is_i18n': False,
1590                'vocabulary': 'nigerian_states',
1591            },
1592        },
1593        'exam_results': {
1594            'type': 'String Widget',
1595            'data': {
1596                'title': '',
1597                'fields': ('exam_results',),
1598                'is_required': False,
1599                'label': 'JAMB Results',
1600                'label_edit': 'JAMB Results',
1601                'description': '',
1602                'help': '',
1603                'is_i18n': False,
1604                'readonly_layout_modes': (),
1605                'hidden_layout_modes': (),
1606                'hidden_readonly_layout_modes': (),
1607                'hidden_empty': False,
1608                'hidden_if_expr': '',
1609                'css_class': '',
1610                'widget_mode_expr': '',
1611                'display_width': 20,
1612                'size_max': 0,
1613            },
1614        },
1615        'aggregate': {
1616            'type': 'String Widget',
1617            'data': {
1618                'title': 'Agregate',
1619                'fields': ('aggregate',),
1620                'is_required': False,
1621                'label': 'JAMB Score',
1622                'label_edit': 'JAMB Score',
1623                'description': '',
1624                'help': '',
1625                'is_i18n': False,
1626            },
1627        },
1628        'faculty': {
1629            'type': 'Select Widget',
1630            'data': {
1631                'title': 'Faculty',
1632                'fields': ('faculty',),
1633                'is_required': True,
1634                'label': 'Faculty',
1635                'label_edit': 'Faculty',
1636                'description': '',
1637                'help': '',
1638                'is_i18n': False,
1639                'vocabulary': 'get_faculties_voc',
1640            },
1641        },
1642        'course': {
1643            'type': 'Select Widget',
1644            'data': {
1645                'title': 'Study Course',
1646                'fields': ('course',),
1647                'is_required': True,
1648                'label': 'Study Course',
1649                'label_edit': 'Study Course',
1650                'description': '',
1651                'help': '',
1652                'vocabulary': 'get_departments_voc',
1653                'is_i18n': False,
1654            },
1655        },
1656        'listing_date': {
1657            'type': 'Date Widget',
1658            'data': {
1659                'title': 'Listing Date',
1660                'fields': ('listing_date',),
1661                'is_required': False,
1662                'label': 'Listing Date',
1663                'label_edit': 'Listing Date',
1664                'description': '',
1665                'help': '',
1666                'is_i18n': False,
1667                'readonly_layout_modes': (),
1668                'hidden_layout_modes': (),
1669                'hidden_readonly_layout_modes': (),
1670                'hidden_empty': False,
1671                'hidden_if_expr': '',
1672                'css_class': '',
1673                'widget_mode_expr': '',
1674                'display_width': 3,
1675                'size_max': 0,
1676            },
1677        },
1678##        '2nd_choice': { ###(
1679##            'type': 'String Widget',
1680##            'data': {
1681##                'title': 'Second choice',
1682##                'fields': ('2nd_choice',),
1683##                'is_required': False,
1684##                'label': 'Second choice',
1685##                'label_edit': 'Second choice',
1686##                'description': '',
1687##                'help': 'second_choice',
1688##                'is_i18n': False,
1689##                'readonly_layout_modes': (),
1690##                'hidden_layout_modes': (),
1691##                'hidden_readonly_layout_modes': (),
1692##                'hidden_empty': False,
1693##                'hidden_if_expr': '',
1694##                'css_class': '',
1695##                'widget_mode_expr': '',
1696##                'display_width': 20,
1697##                'size_max': 0,
1698##            },
1699##        },
1700##
1701##        '3rd_choice': {
1702##            'type': 'String Widget',
1703##            'data': {
1704##                'title': 'Third_choice',
1705##                'fields': ('3rd_choice',),
1706##                'is_required': False,
1707##                'label': 'Third choice',
1708##                'label_edit': 'Third choice',
1709##                'description': 'third_choice',
1710##                'help': 'third_choice',
1711##                'is_i18n': False,
1712##                'readonly_layout_modes': (),
1713##                'hidden_layout_modes': (),
1714##                'hidden_readonly_layout_modes': (),
1715##                'hidden_empty': False,
1716##                'hidden_if_expr': '',
1717##                'css_class': '',
1718##                'widget_mode_expr': '',
1719##                'display_width': 20,
1720##                'size_max': 0,
1721##            },
1722##        },
1723###)
1724
1725        'sc_id': {
1726            'type': 'String Widget',
1727            'data': {
1728                'title': '',
1729                'fields': ('admission_sc_id',),
1730                'is_required': False,
1731                'label': 'Scratch card ID used',
1732                'label_edit': 'Scratch card ID used',
1733                'description': '',
1734                'help': '',
1735                'is_i18n': False,
1736                'readonly_layout_modes': (),
1737                'hidden_layout_modes': (),
1738                'hidden_readonly_layout_modes': (),
1739                'hidden_empty': False,
1740                'hidden_if_expr': '',
1741                'css_class': '',
1742                'widget_mode_expr': '',
1743                'display_width': 20,
1744                'size_max': 0,
1745            },
1746        },
1747        'sc_pin': {
1748            'type': 'String Widget',
1749            'data': {
1750                'title': '',
1751                'fields': ('admission_sc_pin',),
1752                'is_required': False,
1753                'label': 'Scratch Card PIN',
1754                'label_edit': 'Scratch Card PIN',
1755                'description': '',
1756                'help': '',
1757                'is_i18n': False,
1758                'readonly_layout_modes': (),
1759                'hidden_layout_modes': (),
1760                'hidden_readonly_layout_modes': (),
1761                'hidden_empty': False,
1762                'hidden_if_expr': '',
1763                'css_class': '',
1764                'widget_mode_expr': '',
1765                'display_width': 20,
1766                'size_max': 0,
1767            },
1768        },
1769    }
1770###)
1771
1772jamb_layoutcreate = { ###(
1773    'widgets': jamb_widgets,
1774    'layout': {
1775        'style_prefix': 'layout_jambcreate_',
1776        'flexible_widgets': (),
1777        'ncols': 1,
1778        'rows': [
1779            [{'widget_id': 'reg_nr', 'ncols': 1},],
1780            [{'widget_id': 'firstname', 'ncols': 1},],
1781            [{'widget_id': 'middlename', 'ncols': 1},],
1782            [{'widget_id': 'lastname', 'ncols': 1},],
1783            #[{'widget_id': 'sc_id', 'ncols': 1},],
1784            #[{'widget_id': 'sc_pin', 'ncols': 1},],
1785            [{'widget_id': 'age', 'ncols': 1},],
1786            [{'widget_id': 'sex', 'ncols': 1},],
1787            [{'widget_id': 'state', 'ncols': 1},],
1788            #[{'widget_id': 'exam_results', 'ncols': 1},],
1789            [{'widget_id': 'aggregate', 'ncols': 1},],
1790            [{'widget_id': 'faculty', 'ncols': 1},],
1791            [{'widget_id': 'course', 'ncols': 1},],
1792            [{'widget_id': 'listing_date', 'ncols': 1},],
1793            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1794            #[{'widget_id': '3rd_choice', 'ncols': 1},],
1795        ]
1796    },
1797}
1798###)
1799
1800jamb_layout = { ###(
1801    'widgets': jamb_widgets,
1802    'layout': {
1803        'style_prefix': 'layout_waeup_',
1804        'flexible_widgets': (),
1805        'ncols': 1,
1806        'rows': [
1807            [{'widget_id': 'reg_nr', 'ncols': 1},],
1808            [{'widget_id': 'firstname', 'ncols': 1},],
1809            [{'widget_id': 'middlename', 'ncols': 1},],
1810            [{'widget_id': 'lastname', 'ncols': 1},],
1811            #[{'widget_id': 'sc_id', 'ncols': 1},],
1812            [{'widget_id': 'sc_pin', 'ncols': 1},],
1813            [{'widget_id': 'age', 'ncols': 1},],
1814            [{'widget_id': 'sex', 'ncols': 1},],
1815            [{'widget_id': 'state', 'ncols': 1},],
1816            #[{'widget_id': 'exam_results', 'ncols': 1},],
1817            [{'widget_id': 'aggregate', 'ncols': 1},],
1818            [{'widget_id': 'faculty', 'ncols': 1},],
1819            [{'widget_id': 'course', 'ncols': 1},],
1820            [{'widget_id': 'listing_date', 'ncols': 1},],
1821            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1822            #[{'widget_id': '3rd_choice', 'ncols': 1},],
1823        ]
1824    },
1825}
1826###)
1827
1828admission_slip = { ###(
1829    'widgets': jamb_widgets,
1830    'layout': {
1831        'style_prefix': 'layout_waeup_',
1832        'flexible_widgets': (),
1833        'ncols': 1,
1834        'rows': [
1835            [{'widget_id': 'reg_nr', 'ncols': 1},],
1836            [{'widget_id': 'firstname', 'ncols': 1},],
1837            [{'widget_id': 'middlename', 'ncols': 1},],
1838            [{'widget_id': 'lastname', 'ncols': 1},],
1839            #[{'widget_id': 'sc_id', 'ncols': 1},],
1840            #[{'widget_id': 'sc_pin', 'ncols': 1},],
1841            [{'widget_id': 'age', 'ncols': 1},],
1842            [{'widget_id': 'sex', 'ncols': 1},],
1843            [{'widget_id': 'state', 'ncols': 1},],
1844            #[{'widget_id': 'exam_results', 'ncols': 1},],
1845            [{'widget_id': 'aggregate', 'ncols': 1},],
1846            [{'widget_id': 'faculty', 'ncols': 1},],
1847            [{'widget_id': 'course', 'ncols': 1},],
1848            [{'widget_id': 'listing_date', 'ncols': 1},],
1849            #[{'widget_id': '2nd_choice', 'ncols': 1},],
1850            #[{'widget_id': '3rd_choice', 'ncols': 1},],
1851        ]
1852    },
1853}
1854###)
1855
1856course = { ###(
1857    'widgets': {
1858        'heading': {
1859         'type': 'String Widget',
1860         'data': {
1861                'fields': ['heading'],
1862                'is_i18n': 0,
1863                'is_required': 1,
1864                'label': 'Title',
1865                'label_edit': 'Title',
1866                'help': 'Course Title',
1867                'display_width': 40,
1868                'size_max': 40,
1869            },
1870        },
1871        'text': Text,
1872        'level': {
1873            'type': 'Select Widget',
1874            'data': {
1875                'title': '',
1876                'fields': ('level',),
1877                'is_required': True,
1878                'label': 'Level',
1879                'label_edit': 'Level',
1880                'description': '',
1881                'help': '',
1882                'is_i18n': False,
1883                'vocabulary': 'courselevel',
1884            },
1885        },
1886        'code': {
1887            'type': 'String Widget',
1888            'data': {
1889                'title': 'Code',
1890                'fields': ('code',),
1891                'is_required': True,
1892                'label': 'Code',
1893                'label_edit': 'Code',
1894                'description': '',
1895                'help': '',
1896                'is_i18n': False,
1897                'display_width': 10,
1898                'size_max': 0,
1899            },
1900        },
1901        'semester': {
1902            'type': 'Boolean Widget',
1903            'data': {
1904                'title': '',
1905                'fields': ('semester',),
1906                'is_required': True,
1907                'label': 'Semester',
1908                'label_edit': 'Semester',
1909                'label_false': 'Second Semester',
1910                'label_true': 'First Semester',
1911                'description': '',
1912                'help': '',
1913                'is_i18n': False,
1914                'display_width': 10,
1915                'size_max': 0,
1916            },
1917        },
1918        'credit': {
1919            'type': 'Int Widget',
1920            'data': {
1921                'title': '',
1922                'fields': ('credit',),
1923                'is_required': True,
1924                'label': 'Credit',
1925                'label_edit': 'Credit',
1926                'description': '',
1927                'help': '',
1928                'is_i18n': False,
1929                'display_width': 2,
1930                'size_max': 0,
1931            },
1932        },
1933        'core_elective': {
1934            'type': 'Boolean Widget',
1935            'data': {
1936                'title': '',
1937                'fields': ('core_elective',),
1938                'is_required': True,
1939                'label': 'Core or elective',
1940                'label_edit': 'Core or elective',
1941                'label_true': 'Core Course',
1942                'label_false': 'Elective Course',
1943                'description': '',
1944                'help': '',
1945                'is_i18n': False,
1946                'display_width': 10,
1947                'size_max': 0,
1948            },
1949        },
1950    },
1951   'layout': {
1952        'style_prefix': 'layout_waeup_',
1953        'flexible_widgets': (),
1954        'ncols': 1,
1955        'rows': [
1956            [{'widget_id': 'heading', 'ncols': 1},],
1957            #[{'widget_id': 'Title', 'ncols': 1},],
1958            [{'widget_id': 'text', 'ncols': 1},],
1959            [{'widget_id': 'level', 'ncols': 1},],
1960            [{'widget_id': 'code', 'ncols': 1},],
1961            [{'widget_id': 'semester', 'ncols': 1},],
1962            [{'widget_id': 'credit', 'ncols': 1},],
1963            [{'widget_id': 'core_elective', 'ncols': 1},],
1964        ]
1965    },
1966}
1967###)
1968
1969course_results = { ###(
1970    'widgets': {
1971        'points': {
1972            'type': 'Int Widget',
1973            'data': {
1974                'title': '',
1975                'fields': ('points',),
1976                'is_required': False,
1977                'label': 'Points',
1978                'label_edit': 'Points',
1979                'description': '',
1980                'help': '',
1981                'is_i18n': False,
1982                'readonly_layout_modes': (),
1983                'hidden_layout_modes': (),
1984                'hidden_readonly_layout_modes': (),
1985                'hidden_empty': False,
1986                'hidden_if_expr': '',
1987                'css_class': '',
1988                'widget_mode_expr': '',
1989                'display_width': 3,
1990                'size_max': 3,
1991            },
1992        },
1993        'grade': {
1994            'type': 'String Widget',
1995            'data': {
1996                'title': '',
1997                'fields': ('grade'),
1998                'is_required': False,
1999                'label': 'Grade',
2000                'label_edit': 'Grade',
2001                'description': '',
2002                'help': '',
2003                'is_i18n': False,
2004                'readonly_layout_modes': (),
2005                'hidden_layout_modes': (),
2006                'hidden_readonly_layout_modes': (),
2007                'hidden_empty': False,
2008                'hidden_if_expr': '',
2009                'css_class': '',
2010                'widget_mode_expr': '',
2011                'display_width': 2,
2012                'size_max': 1,
2013            },
2014        },
2015    },
2016   'layout': {
2017        'style_prefix': 'layout_waeup_',
2018        'flexible_widgets': (),
2019        'ncols': 1,
2020        'rows': [
2021            [{'widget_id': 'points', 'ncols': 1},],
2022            [{'widget_id': 'grade', 'ncols': 1},],
2023        ]
2024    },
2025}
2026###)
2027
2028accommodation = { ###(
2029    'widgets': {
2030        'heading': {
2031         'type': 'String Widget',
2032         'data': {
2033                'fields': ['heading'],
2034                'level': 2,
2035                'is_i18n': 0,
2036                'is_required': 1,
2037                'label': 'Hall Name',
2038                'label_edit': 'Hall Name',
2039                'help': '',
2040                'display_width': 40,
2041                'size_max': 40,
2042            },
2043        },
2044        'text': Text,
2045        'which_sex': {
2046            'type': 'Boolean Widget',
2047            'data': {
2048                'title': '',
2049                'fields': ('which_sex',),
2050                'is_required': False,
2051                'label': 'Sex',
2052                'label_edit': 'Sex',
2053                'label_false': 'male',
2054                'label_true': 'female',
2055                'description': '',
2056                'help': '',
2057                'is_i18n': False,
2058            },
2059        },
2060        'nr_of_blocks': {
2061            'type': 'Select Widget',
2062            'data': {
2063                'title': '',
2064                'fields': ('nr_of_blocks',),
2065                'is_required': True,
2066                'label': 'Nr of Blocks',
2067                'label_edit': 'Nr of Blocks',
2068                'description': '',
2069                'help': '',
2070                'is_i18n': False,
2071                'vocabulary': 'range10',
2072            },
2073        },
2074        'nr_of_floors': {
2075            'type': 'Select Widget',
2076            'data': {
2077                'title': '',
2078                'fields': ('nr_of_floors',),
2079                'is_required': True,
2080                'label': 'Nr of Floors ',
2081                'label_edit': 'Nr of Floors',
2082                'description': '',
2083                'help': '',
2084                'is_i18n': False,
2085                'vocabulary': 'range5',
2086            },
2087        },
2088        'rooms_per_floor': {
2089            'type': 'Select Widget',
2090            'data': {
2091                'title': '',
2092                'fields': ('rooms_per_floor',),
2093                'is_required': True,
2094                'label': 'Rooms per Floor',
2095                'label_edit': 'Rooms per Floor',
2096                'description': '',
2097                'help': '',
2098                'is_i18n': False,
2099                'vocabulary': 'range50',
2100            },
2101        },
2102        'beds_per_room': {
2103            'type': 'Select Widget',
2104            'data': {
2105                'title': '',
2106                'fields': ('beds_per_room',),
2107                'is_required': True,
2108                'label': 'Beds per Room',
2109                'label_edit': 'Beds per Room',
2110                'description': '',
2111                'help': '',
2112                'is_i18n': False,
2113                'vocabulary': 'range10',
2114            },
2115        },
2116        'beds_assigned': {
2117            'type': 'Int Widget',
2118            'data': {
2119                'title': '',
2120                'fields': ('beds_assigned',),
2121                'is_required': True,
2122                'label': 'Nr. of Assigned Beds',
2123                'label_edit': 'Nr. of Assigned Beds',
2124                'description': '',
2125                'help': 'Number of beds already assigned to students',
2126                'is_i18n': False,
2127            },
2128        },
2129        'beds_assigned_list': {
2130            'type': 'Ordered List Widget',
2131            'data': {
2132                'title': '',
2133                'fields': ('beds_assigned_list',),
2134                'label': 'Assigned Beds',
2135                'label_edit': 'Assigned Beds',
2136                'description': '',
2137                'help': 'List of beds already assigned to students',
2138                'is_i18n': False,
2139            },
2140        },
2141    },
2142   'layout': {
2143        'style_prefix': 'layout_waeup_',
2144        'flexible_widgets': (),
2145        'ncols': 1,
2146        'rows': [
2147            [{'widget_id': 'heading', 'ncols': 1},],
2148            #[{'widget_id': 'Title', 'ncols': 1},],
2149            [{'widget_id': 'text', 'ncols': 1},],
2150            [{'widget_id': 'which_sex', 'ncols': 1},],
2151            [{'widget_id': 'nr_of_blocks', 'ncols': 1},],
2152            [{'widget_id': 'nr_of_floors', 'ncols': 1},],
2153            [{'widget_id': 'rooms_per_floor', 'ncols': 1},],
2154            [{'widget_id': 'beds_per_room', 'ncols': 1},],
2155            [{'widget_id': 'beds_assigned', 'ncols': 1},],
2156            [{'widget_id': 'beds_assigned_list', 'ncols': 1},],
2157        ]
2158    },
2159}
2160###)
2161
2162study_level = { ###(
2163    'widgets': {
2164      'sc_id': { ###(
2165        'type': 'String Widget',
2166        'data': {
2167                'title': 'SC ID',
2168                'fields': ('sc_id'),
2169                'is_required': False,
2170                'label': 'Card Serial Number ',
2171                'label_edit': 'Card Serial Number',
2172                'description': 'Card Serial Number ',
2173                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
2174                'is_i18n': False,
2175                'readonly_layout_modes': (),
2176                'hidden_layout_modes': (),
2177                'hidden_readonly_layout_modes': (),
2178                'hidden_empty': False,
2179                'hidden_if_expr': 'python:1',
2180                'css_class': '',
2181                'widget_mode_expr': '',
2182                'display_width': 10,
2183                'size_max': 0,
2184            }
2185        },###)
2186      'sc_pin': { ###(
2187         'type': 'Scratchcard Pin Widget',
2188         'data': {
2189                'title': 'SC PIN',
2190                'fields': ('sc_pin'),
2191                'is_required': True,
2192                'label': 'Enter  PIN',
2193                'label_edit': 'Enter Scratchcard Pin with the value above',
2194                'description': '',
2195                'help': 'Please enter a Scratchcard Pin valid for Registration of Next Level',
2196                'is_i18n': False,
2197                'readonly_layout_modes': (),
2198                'hidden_layout_modes': (),
2199                'hidden_readonly_layout_modes': (),
2200                'hidden_empty': False,
2201                'hidden_if_expr': '',
2202                'css_class': '',
2203                'widget_mode_expr': '',
2204                'display_width': 10,
2205                'size_max': 10,
2206            },
2207        },###)
2208      'sc_value': { ###(
2209         'type': 'Float Widget',
2210         'data': {
2211                'title': 'Scratch card value',
2212                'fields': ('sc_value',),
2213                'is_required': False,
2214                'label': 'Scratcard Value',
2215                'label_edit': 'Scratcard Value',
2216                'description': '',
2217                'help': '',
2218                'is_i18n': False,
2219                'readonly_layout_modes': ('create'),
2220                'hidden_layout_modes': (),
2221                'hidden_readonly_layout_modes': (),
2222                'hidden_empty': False,
2223                'hidden_if_expr': '',
2224                'css_class': '',
2225                'widget_mode_expr': '',
2226                'display_width': 10,
2227                'size_max': 10,
2228            },
2229        },###)
2230               },
2231   'layout': {
2232        'style_prefix': 'layout_slregister_',
2233        'flexible_widgets': (),
2234        'ncols': 1,
2235        'rows': [
2236            #[{'widget_id': 'sc_id', 'ncols': 1},],
2237            [{'widget_id': 'sc_value', 'ncols': 1},],
2238            [{'widget_id': 'sc_pin', 'ncols': 1},],
2239        ]
2240    },
2241}###)
2242
2243accobook = { ###(
2244    'widgets': {
2245     'sc_id': { ###(
2246        'type': 'String Widget',
2247        'data': {
2248                'title': 'SC ID',
2249                'fields': ('sc_id'),
2250                'is_required': False,
2251                'label': 'Card Serial Number ',
2252                'label_edit': 'Card Serial Number',
2253                'description': 'Card Serial Number ',
2254                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
2255                'is_i18n': False,
2256                'readonly_layout_modes': (),
2257                'hidden_layout_modes': (),
2258                'hidden_readonly_layout_modes': (),
2259                'hidden_empty': False,
2260                'hidden_if_expr': 'python:1',
2261                'css_class': '',
2262                'widget_mode_expr': '',
2263                'display_width': 10,
2264                'size_max': 0,
2265            }
2266        },###)
2267    'sc_pin': { ###(
2268         'type': 'Scratchcard Pin Widget',
2269         'data': {
2270                'title': 'SC PIN',
2271                'fields': ('sc_pin'),
2272                'is_required': True,
2273                'label': 'enter  PIN',
2274                'label_edit': 'Enter an Accommodation PIN',
2275                'description': '',
2276                'help': 'Enter a PIN valid for Accomodation Booking',
2277                'is_i18n': False,
2278                'readonly_layout_modes': (),
2279                'hidden_layout_modes': (),
2280                'hidden_readonly_layout_modes': (),
2281                'hidden_empty': False,
2282                'hidden_if_expr': '',
2283                'css_class': '',
2284                'widget_mode_expr': '',
2285                'display_width': 10,
2286                'size_max': 10,
2287            },
2288        },###)
2289    'sc_value': { ###(
2290         'type': 'Float Widget',
2291         'data': {
2292                'title': 'Scratch card value',
2293                'fields': ('sc_value',),
2294                'is_required': False,
2295                'label': 'SC Value',
2296                'label_edit': 'Scratcard Value',
2297                'description': '',
2298                'help': '',
2299                'is_i18n': False,
2300                'readonly_layout_modes': ('create'),
2301                'hidden_layout_modes': (),
2302                'hidden_readonly_layout_modes': (),
2303                'hidden_empty': False,
2304                'hidden_if_expr': '',
2305                'css_class': '',
2306                'widget_mode_expr': '',
2307                'display_width': 10,
2308                'size_max': 10,
2309            },
2310        },###)
2311               },
2312   'layout': {
2313        'style_prefix': 'layout_sc_',
2314        'flexible_widgets': (),
2315        'ncols': 1,
2316        'rows': [
2317            #[{'widget_id': 'sc_id', 'ncols': 1},],
2318            [{'widget_id': 'sc_value', 'ncols': 1},],
2319            [{'widget_id': 'sc_pin', 'ncols': 1},],
2320        ]
2321    },
2322}
2323###)
2324
2325accopay = { ###(
2326    'widgets': {
2327     'sc_id': { ###(
2328        'type': 'String Widget',
2329        'data': {
2330                'title': 'SC ID',
2331                'fields': ('sc_id'),
2332                'is_required': False,
2333                'label': 'Card Serial Number ',
2334                'label_edit': 'Card Serial Number',
2335                'description': 'Card Serial Number ',
2336                'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',
2337                'is_i18n': False,
2338                'readonly_layout_modes': (),
2339                'hidden_layout_modes': (),
2340                'hidden_readonly_layout_modes': (),
2341                'hidden_empty': False,
2342                'hidden_if_expr': 'python:1',
2343                'css_class': '',
2344                'widget_mode_expr': '',
2345                'display_width': 10,
2346                'size_max': 0,
2347            }
2348        },###)
2349    'sc_pin': { ###(
2350         'type': 'Scratchcard Pin Widget',
2351         'data': {
2352                'title': 'SC PIN',
2353                'fields': ('sc_pin'),
2354                'is_required': True,
2355                'label': 'enter  PIN',
2356                'label_edit': 'Enter Hostel Payment PIN',
2357                'description': '',
2358                'help': 'Enter PIN valid for Paying Hostel Fee',
2359                'is_i18n': False,
2360                'readonly_layout_modes': (),
2361                'hidden_layout_modes': (),
2362                'hidden_readonly_layout_modes': (),
2363                'hidden_empty': False,
2364                'hidden_if_expr': '',
2365                'css_class': '',
2366                'widget_mode_expr': '',
2367                'display_width': 10,
2368                'size_max': 10,
2369            },
2370        },###)
2371    'sc_value': { ###(
2372         'type': 'Float Widget',
2373         'data': {
2374                'title': 'Scratch card value',
2375                'fields': ('sc_value',),
2376                'is_required': False,
2377                'label': 'SC Value',
2378                'label_edit': 'Scratcard Value',
2379                'description': '',
2380                'help': '',
2381                'is_i18n': False,
2382                'readonly_layout_modes': ('create'),
2383                'hidden_layout_modes': (),
2384                'hidden_readonly_layout_modes': (),
2385                'hidden_empty': False,
2386                'hidden_if_expr': '',
2387                'css_class': '',
2388                'widget_mode_expr': '',
2389                'display_width': 10,
2390                'size_max': 10,
2391            },
2392        },###)
2393               },
2394   'layout': {
2395        'style_prefix': 'layout_sc_',
2396        'flexible_widgets': (),
2397        'ncols': 1,
2398        'rows': [
2399            #[{'widget_id': 'sc_id', 'ncols': 1},],
2400            [{'widget_id': 'sc_value', 'ncols': 1},],
2401            [{'widget_id': 'sc_pin', 'ncols': 1},],
2402        ]
2403    },
2404}###)
2405
2406layouts = {}
2407layouts['university'] = common_layout
2408layouts['waeup_common'] = common_layout
2409layouts['student'] = student_layout
2410layouts['study_level'] = study_level
2411layouts['student_documents'] = student_documents
2412layouts['student_personal'] = student_personal_layout
2413layouts['student_personal_addon'] = student_personal_addon
2414layouts['student_eligibility'] = student_eligibility
2415layouts['student_eligibility_edit'] = student_eligibility_edit
2416layouts['student_schoolresults'] = student_schoolresults
2417layouts['accommodation'] = accommodation
2418layouts['accobook'] = accobook
2419layouts['accopay'] = accopay
2420layouts['scratch_card'] = scratch_card
2421layouts['admission'] = admission
2422layouts['clearance'] = clearance
2423layouts['admission_slip'] = admission_slip
2424layouts['jambcreate'] = jamb_layoutcreate
2425layouts['jamb'] = jamb_layout
2426layouts['faculty'] = common_layout
2427layouts['department'] = common_layout
2428layouts['course'] = course
2429layouts['admission_status'] = admission_status
2430return layouts
Note: See TracBrowser for help on using the repository browser.