Ignore:
Timestamp:
27 Oct 2005, 23:58:38 (19 years ago)
Author:
joachim
Message:

=student accomodation

Location:
waeup_product/trunk/skins/waeup_default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py

    r106 r107  
    542542                'fields': ('accommodation_sc_pin'),
    543543                'is_required': True,
    544                 'label': 'PIN',
    545                 'label_edit': 'PIN',
    546                 'description': '',
    547                 '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',
     544                'label': 'enter an Accommodation PIN',
     545                'label_edit': 'enter an Accommodation PIN',
     546                'description': '',
     547                'help': 'Please enter a PIN valid for Accomodation booking',
    548548                'is_i18n': False,
    549549                'readonly_layout_modes': (),
     
    566566            #[{'widget_id': 'sc_id', 'ncols': 1},],
    567567            [{'widget_id': 'sc_pin', 'ncols': 1},],
    568             [{'widget_id': 'jamb_id', 'ncols': 1},],
    569568        ]
    570569    },
     
    10981097            },
    10991098        },
     1099        'beds_assigned': {
     1100            'type': 'Int Widget',
     1101            'data': {
     1102                'title': '',
     1103                'fields': ('beds_assigned',),
     1104                'is_required': True,
     1105                'label': 'Assigned Beds',
     1106                'label_edit': 'Assigned',
     1107                'description': '',
     1108                'help': 'Number of Beds already assined',
     1109                'is_i18n': False,
     1110            },
     1111        },
    11001112    },
    11011113   'layout': {
     
    11111123            [{'widget_id': 'rooms_per_floor', 'ncols': 1},],
    11121124            [{'widget_id': 'beds_per_room', 'ncols': 1},],
     1125            [{'widget_id': 'beds_assigned', 'ncols': 1},],
    11131126        ]
    11141127    },
     
    11221135layouts['student_personal'] = student_personal_layout
    11231136layouts['accommodation'] = accommodation
     1137layouts['accobook'] = accobook
    11241138layouts['scratch_card'] = scratch_card
    11251139layouts['admission'] = admission
  • waeup_product/trunk/skins/waeup_default/getWAeUPSchemas.py

    r106 r107  
    6565        },
    6666    },
    67     'accomodation_sc_id': {
     67    'accommodation_sc_id': {
    6868        'type': 'CPS String Field',
    6969        'data': {
     
    8383        },
    8484    },
    85     'accomodation_sc_pin': {
     85    'accommodation_sc_pin': {
    8686        'type': 'CPS String Field',
    8787        'data': {
     
    355355        'type': 'CPS String Field',
    356356        'data': {
    357             'default_expr': 'string:',
    358357            'is_searchabletext': True,
    359358        },
     
    362361        'type': 'CPS String Field',
    363362        'data': {
    364             'default_expr': 'string:',
    365363            'is_searchabletext': True,
    366364        },
     
    369367        'type': 'CPS Boolean Field',
    370368        'data': {
    371             'default_expr': 'string:',
    372369            'is_searchabletext': True,
    373370        },
     
    376373        'type': 'CPS Int Field',
    377374        'data': {
    378             'default_expr': 'string:',
    379375            'is_searchabletext': False,
    380376        },
     
    383379        'type': 'CPS Int Field',
    384380        'data': {
    385             'default_expr': 'string:',
    386381            'is_searchabletext': False,
    387382        },
     
    390385        'type': 'CPS Int Field',
    391386        'data': {
    392             'default_expr': 'string:',
    393387            'is_searchabletext': False,
    394388        },
     
    397391        'type': 'CPS Int Field',
    398392        'data': {
    399             'default_expr': 'string:',
     393            'is_searchabletext': False,
     394        },
     395    },
     396    'beds_assigned': {
     397        'type': 'CPS Int Field',
     398        'data': {
     399            'is_searchabletext': False,
     400        },
     401    },
     402    'beds_assigned_list': {
     403        'type': 'CPS String List Field',
     404        'data': {
    400405            'is_searchabletext': False,
    401406        },
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r106 r107  
    538538         {'id': 'view',
    539539          'name': 'action_view',
    540           'action': 'string:${portal_url}/sections/waeup/Accomodation/accommodation_index_html',
     540          'action': 'accommodation_index_html',
    541541          'condition': '',
    542542          'permission': (View,),
    543543          'category': 'object',
    544544          'visible': True,},
     545          {'id': 'add_accommodation',
     546          'name': 'Add an Accommodation Hall',
     547          'condition': "python:member and not 'Student'in member.getRoles()",
     548          'action'    : 'add_accommodation',
     549          #'action': 'folder_factories',
     550          'permissions': (UniversityManage,)},
    545551         {'id': 'metadata',
    546552          'name': 'action_metadata',
Note: See TracChangeset for help on using the changeset viewer.