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