- Timestamp:
- 2 Nov 2005, 14:40:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py
r137 r139 178 178 ## }, 179 179 ## }, 180 ## 'jamb_pin_usage': {181 ## 'type': 'Int Widget',182 ## 'data': {183 ## 'title': 'Jamb Pin usage',184 ## 'fields': ('jamb_pin_usage',),185 ## 'is_required': False,186 ## 'label': 'Nr of Cardusage',187 ## 'label_edit': 'Nr of Cardusage',188 ## 'description': '',189 ## 'help': 'How many times has the scratchcard been used',190 ## 'is_i18n': False,191 ## 'readonly_layout_modes': (),192 ## 'hidden_layout_modes': (),193 ## 'hidden_readonly_layout_modes': (),194 ## 'hidden_empty': False,195 ## 'hidden_if_expr': '',196 ## 'css_class': '',197 ## 'widget_mode_expr': '',198 ## 'display_width': 2,199 ## 'size_max': 2,200 ## },201 ## },202 180 'faculty': { 203 181 'type': 'String Widget', … … 228 206 'ncols': 1, 229 207 'rows': [ 230 [{'widget_id': 'jamb_is_admitted', 'ncols': 1},],208 #[{'widget_id': 'jamb_is_admitted', 'ncols': 1},], 231 209 #[{'widget_id': 'jamb_where_admitted', 'ncols': 1},], 232 210 #[{'widget_id': 'jamb_pin_usage', 'ncols': 1},], 233 [{'widget_id': 'faculty', 'ncols': 1},],211 #[{'widget_id': 'faculty', 'ncols': 1},], 234 212 ] 235 213 }, … … 508 486 [{'widget_id': 'sc_pin', 'ncols': 1},], 509 487 [{'widget_id': 'jamb_id', 'ncols': 1},], 510 ]511 },512 }513 ###)514 515 accobook = { ###(516 'widgets': {517 'sc_id': {518 'type': 'String Widget',519 'data': {520 'title': 'SC ID',521 'fields': ('accommodation_sc_id',),522 'is_required': False,523 'label': 'Card Serial Number ',524 'label_edit': 'Card Serial Number',525 'description': 'Card Serial Number ',526 'help': 'This can be found on the bottom right of the reverse side of your Scratch Card',527 'is_i18n': False,528 'readonly_layout_modes': (),529 'hidden_layout_modes': (),530 'hidden_readonly_layout_modes': (),531 'hidden_empty': False,532 'hidden_if_expr': 'python:1',533 'css_class': '',534 'widget_mode_expr': '',535 'display_width': 10,536 'size_max': 0,537 },538 },539 'sc_pin': {540 'type': 'Scratchcard Pin Widget',541 'data': {542 'title': 'SC Pin',543 'fields': ('accommodation_sc_pin'),544 'is_required': True,545 'label': 'enter an Accommodation PIN',546 'label_edit': 'enter an Accommodation PIN',547 'description': '',548 'help': 'Please enter a PIN valid for Accomodation booking',549 'is_i18n': False,550 'readonly_layout_modes': (),551 'hidden_layout_modes': (),552 'hidden_readonly_layout_modes': (),553 'hidden_empty': False,554 'hidden_if_expr': '',555 'css_class': '',556 'widget_mode_expr': '',557 'display_width': 10,558 'size_max': 10,559 },560 },561 },562 'layout': {563 'style_prefix': 'layout_accobook_',564 'flexible_widgets': (),565 'ncols': 1,566 'rows': [567 #[{'widget_id': 'sc_id', 'ncols': 1},],568 [{'widget_id': 'sc_pin', 'ncols': 1},],569 488 ] 570 489 }, … … 905 824 'data': { 906 825 'fields': ['heading'], 907 'level': 1,826 'level': 2, 908 827 'is_i18n': 0, 909 828 'is_required': 1, 829 'label': 'Title', 910 830 'label_edit': 'Title', 911 831 'help': 'Course Title', … … 914 834 }, 915 835 }, 836 'title': Title, 916 837 'text': Text, 917 838 'level': { … … 1000 921 'rows': [ 1001 922 [{'widget_id': 'heading', 'ncols': 1},], 923 [{'widget_id': 'title', 'ncols': 1},], 1002 924 [{'widget_id': 'text', 'ncols': 1},], 1003 925 [{'widget_id': 'level', 'ncols': 1},], … … 1011 933 ###) 1012 934 935 course_results = { ###( 936 'widgets': { 937 'points': { 938 'type': 'Int Widget', 939 'data': { 940 'title': '', 941 'fields': ('points',), 942 'is_required': False, 943 'label': 'Points', 944 'label_edit': 'Points', 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': 3, 956 'size_max': 3, 957 }, 958 }, 959 'grade': { 960 'type': 'String Widget', 961 'data': { 962 'title': '', 963 'fields': ('grade'), 964 'is_required': False, 965 'label': 'Grade', 966 'label_edit': 'Grade', 967 'description': '', 968 'help': '', 969 'is_i18n': False, 970 'readonly_layout_modes': (), 971 'hidden_layout_modes': (), 972 'hidden_readonly_layout_modes': (), 973 'hidden_empty': False, 974 'hidden_if_expr': '', 975 'css_class': '', 976 'widget_mode_expr': '', 977 'display_width': 2, 978 'size_max': 1, 979 }, 980 }, 981 }, 982 'layout': { 983 'style_prefix': 'layout_default_', 984 'flexible_widgets': (), 985 'ncols': 1, 986 'rows': [ 987 [{'widget_id': 'points', 'ncols': 1},], 988 [{'widget_id': 'grade', 'ncols': 1},], 989 ] 990 }, 991 } 992 ###) 993 1013 994 accommodation = { ###( 1014 995 'widgets': { … … 1017 998 'data': { 1018 999 'fields': ['heading'], 1019 'level': 1,1000 'level': 2, 1020 1001 'is_i18n': 0, 1021 1002 'is_required': 1, 1003 'label': 'Hall Name', 1022 1004 'label_edit': 'Hall Name', 1023 1005 'help': '', … … 1026 1008 }, 1027 1009 }, 1010 'title': Title, 1028 1011 'text': Text, 1029 1012 'which_sex': { … … 1118 1101 'rows': [ 1119 1102 [{'widget_id': 'heading', 'ncols': 1},], 1103 [{'widget_id': 'title', 'ncols': 1},], 1120 1104 [{'widget_id': 'text', 'ncols': 1},], 1121 1105 [{'widget_id': 'which_sex', 'ncols': 1},], … … 1125 1109 [{'widget_id': 'beds_per_room', 'ncols': 1},], 1126 1110 [{'widget_id': 'beds_assigned', 'ncols': 1},], 1111 ] 1112 }, 1113 } 1114 ###) 1115 1116 accobook = { ###( 1117 'widgets': { 1118 'sc_id': { 1119 'type': 'String Widget', 1120 'data': { 1121 'title': 'SC ID', 1122 'fields': ('accommodation_sc_id',), 1123 'is_required': False, 1124 'label': 'Card Serial Number ', 1125 'label_edit': 'Card Serial Number', 1126 'description': 'Card Serial Number ', 1127 'help': 'This can be found on the bottom right of the reverse side of your Scratch Card', 1128 'is_i18n': False, 1129 'readonly_layout_modes': (), 1130 'hidden_layout_modes': (), 1131 'hidden_readonly_layout_modes': (), 1132 'hidden_empty': False, 1133 'hidden_if_expr': 'python:1', 1134 'css_class': '', 1135 'widget_mode_expr': '', 1136 'display_width': 10, 1137 'size_max': 0, 1138 }, 1139 }, 1140 'sc_pin': { 1141 'type': 'Scratchcard Pin Widget', 1142 'data': { 1143 'title': 'SC Pin', 1144 'fields': ('accommodation_sc_pin'), 1145 'is_required': True, 1146 'label': 'enter an Accommodation PIN', 1147 'label_edit': 'enter an Accommodation PIN', 1148 'description': '', 1149 'help': 'Please enter a PIN valid for Accomodation booking', 1150 'is_i18n': False, 1151 'readonly_layout_modes': (), 1152 'hidden_layout_modes': (), 1153 'hidden_readonly_layout_modes': (), 1154 'hidden_empty': False, 1155 'hidden_if_expr': '', 1156 'css_class': '', 1157 'widget_mode_expr': '', 1158 'display_width': 10, 1159 'size_max': 10, 1160 }, 1161 }, 1162 }, 1163 'layout': { 1164 'style_prefix': 'layout_accobook_', 1165 'flexible_widgets': (), 1166 'ncols': 1, 1167 'rows': [ 1168 #[{'widget_id': 'sc_id', 'ncols': 1},], 1169 [{'widget_id': 'sc_pin', 'ncols': 1},], 1127 1170 ] 1128 1171 },
Note: See TracChangeset for help on using the changeset viewer.