fix missing references to reserve helper
This commit is contained in:
@@ -1279,6 +1279,7 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) {
|
||||
1 => "leader-row",
|
||||
2 => "helper-row",
|
||||
3 => "reserveleader-row",
|
||||
4 => "reservehelper-row",
|
||||
);
|
||||
|
||||
//attach the custom css
|
||||
@@ -1348,11 +1349,9 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) {
|
||||
$class = $class_array[$data->booking_studygroup_role];
|
||||
|
||||
//only add the lines separating groups if we're sorting by the session id
|
||||
if ($sort['sql'] == "m.booking_session_id")
|
||||
{
|
||||
if ($sort['sql'] == "m.booking_session_id") {
|
||||
//Add a different id for first entry of new session, with a border-top to distinguish it
|
||||
if ($last_session <> $data->booking_session_id)
|
||||
{
|
||||
if ($last_session <> $data->booking_session_id) {
|
||||
switch ($data->booking_studygroup_role) {
|
||||
case 1:
|
||||
$class = "leader-new-group-row";
|
||||
@@ -1363,6 +1362,9 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) {
|
||||
case 3:
|
||||
$class = "reserveleader-new-group-row";
|
||||
break;
|
||||
case 4:
|
||||
$class = "reservehelper-new-group-row";
|
||||
break;
|
||||
default:
|
||||
$class = "new-group-row";
|
||||
|
||||
@@ -1394,14 +1396,6 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) {
|
||||
}
|
||||
|
||||
$prefix = t("<h2>Study Group !descrip</h2>", array('!descrip' => $group->booking_studygroup_descrip));
|
||||
/*
|
||||
$form['table'] = array (
|
||||
'#type' => 'tableselect',
|
||||
'#header' => $header,
|
||||
'#options' => $options,
|
||||
//'#attributes' => array('id' => 'sort-table'),
|
||||
);
|
||||
*/
|
||||
return array (
|
||||
'#attached' => array (
|
||||
'css' => array(drupal_get_path('module', 'booking') . '/booking.css')
|
||||
@@ -1417,7 +1411,6 @@ function booking_studygroups_view_form($node, &$form_state, $group_id) {
|
||||
'#attributes' => array('id' => 'sort-table'),
|
||||
//'#sticky' => FALSE,
|
||||
)
|
||||
//'form' => $form,
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user