Change CSV processing and studygroup display info

This commit is contained in:
2016-02-01 20:31:29 +11:00
parent ba0ee914f9
commit 74eccf57d3
4 changed files with 31 additions and 11 deletions

View File

@@ -380,9 +380,10 @@ function _booking_rooms_allocate_generate_singlebeds($data, $existing_beds, $def
'#title' => 'Name',
'#title_display' => 'invisible',
'#name' => 'booking_room_singlebed[' . $data->rid . '][' . $i . ']',
'#size' => 50,
'#size' => 100,
'#autocomplete_path' => 'booking/rooms/autocomplete',
'#value' => (!empty($existing_beds[1][$i])) ? $existing_beds[1][$i] : '',
'#attributes' => array('style' => array('width:200px')),
);
$form['rooms'][$data->rid][$counter] = array(
@@ -414,9 +415,10 @@ function _booking_rooms_allocate_generate_doublebeds($data, $existing_beds, $def
'#title' => 'Name',
'#title_display' => 'invisible',
'#name' => 'booking_room_doublebed_p1[' . $data->rid . '][' . $i . ']',
'#size' => 50,
'#size' => 100,
'#autocomplete_path' => 'booking/rooms/autocomplete',
'#value' => (!empty($existing_beds[2][$j])) ? $existing_beds[2][$j++] : '',
'#attributes' => array('style' => array('width:200px')),
);
$double_bed_p2 = array (
'#id' => 'booking-room-doublebed-p2-' . $data->rid . '-' . $i,
@@ -424,9 +426,10 @@ function _booking_rooms_allocate_generate_doublebeds($data, $existing_beds, $def
'#title' => 'Name',
'#title_display' => 'invisible',
'#name' => 'booking_room_doublebed_p2[' . $data->rid . '][' . $i . ']',
'#size' => 50,
'#size' => 100,
'#autocomplete_path' => 'booking/rooms/autocomplete',
'#value' => (!empty($existing_beds[2][$j])) ? $existing_beds[2][$j++] : '',
'#attributes' => array('style' => array('width:200px')),
);
//include fields for rendering
@@ -463,9 +466,10 @@ function _booking_rooms_allocate_generate_queenbeds($data, $existing_beds, $defa
'#title' => 'Name',
'#title_display' => 'invisible',
'#name' => 'booking_room_queenbed_p1[' . $data->rid . '][' . $i . ']',
'#size' => 50,
'#size' => 100,
'#autocomplete_path' => 'booking/rooms/autocomplete',
'#value' => (!empty($existing_beds[3][$j])) ? $existing_beds[3][$j++] : '',
'#attributes' => array('style' => array('width:200px')),
);
$queen_bed_p2 = array (
'#id' => 'booking-room-queenbed-p2-' . $data->rid . '-' . $i,
@@ -473,9 +477,10 @@ function _booking_rooms_allocate_generate_queenbeds($data, $existing_beds, $defa
'#title' => 'Name',
'#title_display' => 'invisible',
'#name' => 'booking_room_queenbed_p2[' . $data->rid . '][' . $i . ']',
'#size' => 50,
'#size' => 100,
'#autocomplete_path' => 'booking/rooms/autocomplete',
'#value' => (!empty($existing_beds[3][$j])) ? $existing_beds[3][$j++] : '',
'#attributes' => array('style' => array('width:200px')),
);
// Include the fields so they'll be rendered and named