Autocomplete form now working, todo is submit handler

This commit is contained in:
2016-01-23 16:31:21 +11:00
parent 7d1494ed8a
commit 0e09302c9a
2 changed files with 266 additions and 117 deletions

View File

@@ -597,6 +597,7 @@ function booking_menu() {
//'type' => MENU_NORMAL_ITEM,
);
//use this for testing the autocomplete fields
$items['admin/booking/rooms/test/%/assign'] = array(
'title' => 'Assign Rooms',
'description' => 'Assign attendees to rooms',
@@ -605,6 +606,14 @@ function booking_menu() {
'access arguments' => array('edit room allocations'),
//'type' => MENU_NORMAL_ITEM,
);
//callback for autocomplete lookup
$items['booking/rooms/autocomplete'] = array(
'title' => 'Autocomplete for room allocations',
'page callback' => '_booking_rooms_name_autocomplete',
'access arguments' => array('edit room allocations'),
'type' => MENU_CALLBACK
);
$items['admin/booking/rooms/%/view'] = array(
'title' => 'View Allocated Rooms',