add more info about discounted payment rates

This commit is contained in:
2017-08-29 22:19:47 +10:00
parent d023e67da5
commit a707ab2fd0

View File

@@ -100,7 +100,8 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
foreach ($result as $row) {
$price = $select_early == TRUE ? $row->booking_price : $row->booking_late_price;
$payment_type_options[$row->pid] = $row->booking_price_descrip . ' ($' . $price . ')';
$discount_suffix = $select_early == TRUE ? " - discounted rate" : "";
$payment_type_options[$row->pid] = $row->booking_price_descrip . ' ($' . $price . ')' . $discount_suffix;
}
// ------- form starts here ---------
@@ -195,11 +196,14 @@ function booking_form($node, &$form_state, $inserting = FALSE, $early_access_all
$form['your-details']['booking_dob']['#date_year_range'] = $date_year_range;
}
$early_description_text = t("Please note that this is the discounted payment rate. Fore more information about payment rates, please see !theweek",
array('!theweek' => l('The Week page', 'the-week/whats-happening')));
$form['your-details']['booking_payment_id'] = array(
'#type' => 'select',
'#title' => t('Choose your payment type'),
'#description' => $select_early == TRUE ? $early_description_text : "",
'#default_value' => $inserting != TRUE ? $data->booking_payment_id : variable_get('booking_payment_id', 'worker'),
'#options' => $payment_type_options
'#options' => $payment_type_options,
);
// The status field should not be visible unless this registration is being updated...i.e. not at actual registration time...