more progress on room allocation pages

This commit is contained in:
2014-05-27 15:58:50 +10:00
parent 773ba5a101
commit 2a3d29aa3b
5 changed files with 177 additions and 78 deletions

View File

@@ -111,6 +111,12 @@ function booking_permission() {
'edit study groups' => array(
'title' => t('Edit study groups'),
),
'view room allocations' => array(
'title' => t('View Room Allocations'),
),
'edit room allocations' => array(
'title' => t('Edit Room Allocations'),
),
'create_travel_forms' => array(
'title' => t('Create a new travel form entry'),
),
@@ -383,15 +389,25 @@ function booking_menu() {
'type' => MENU_LOCAL_ACTION,
);
}
//configure rooms
$items['admin/booking/rooms/assign'] = array(
$items['admin/booking/rooms'] = array(
'title' => 'View Rooms',
'description' => 'View Room Locations',
'page callback' => 'booking_room_view_summary',
'access arguments' => array("view room allocations"),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/booking/rooms/%/assign'] = array(
'title' => 'Assign Rooms',
'description' => 'Assign attendees to rooms',
'page callback' => 'drupal_get_form',
'page arguments' => array('booking_rooms_allocate_form'),
'access arguments' => array('edit bookings'),
'type' => MENU_NORMAL_ITEM,
'page arguments' => array('booking_rooms_allocate_form', 3),
//'page arguments' => array('booking_rooms_allocate_form'),
'access arguments' => array('edit room allocations'),
//'type' => MENU_NORMAL_ITEM,
);