Browse Source

added the length dropdown back to the form so mobile users can select different lengths

d9
ppound 3 years ago
parent
commit
fb3147d8bf
  1. 4
      reservation.inc

4
reservation.inc

@ -96,7 +96,8 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte
$form['reservable_content_type']['#access'] = false; $form['reservable_content_type']['#access'] = false;
// in prep for having better lockout of having slot taken by another user; let's also hide Length // in prep for having better lockout of having slot taken by another user; let's also hide Length
$form['reservation_length']['#access'] = false; // Lets not hide the length so mobile users can pick a length.
//$form['reservation_length']['#access'] = false;
// hide other fields we don't want to show // hide other fields we don't want to show
$form['user_id']['#access'] = false; $form['user_id']['#access'] = false;
@ -183,7 +184,6 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte
<h2 class="reservation-h2">' . t('Reservation booking for') . ':</h2><div><strong>' . $bundleName . ': ' . $entity->label() . '</strong></div> <h2 class="reservation-h2">' . t('Reservation booking for') . ':</h2><div><strong>' . $bundleName . ': ' . $entity->label() . '</strong></div>
<div><strong>' . t('Date') . ': ' . $date . '</strong></div> <div><strong>' . t('Date') . ': ' . $date . '</strong></div>
<div><strong>' . t('Time') . ': ' . $time . '</strong></div> <div><strong>' . t('Time') . ': ' . $time . '</strong></div>
<div><strong>' . t('Length') . ': ' . $lengthDisplay . '</strong></div>
<br>', <br>',
]; ];

Loading…
Cancel
Save