minor tweaks to UI

This commit is contained in:
2014-11-18 16:46:03 +11:00
parent 61ba6cc45a
commit be3cc83630
5 changed files with 69 additions and 50 deletions

View File

@@ -145,32 +145,32 @@ function booking_price_form($node, &$form_state, $create, $editid = 0)
);
$form['booking_price'] = array (
'#type' => 'textfield',
'#title' => t('The earlybird price relating to this entry'),
'#title' => t('The earlybird price relating to this entry. Set this to match the normal price if not using a discount for early bookings.'),
'#field_prefix' => '$',
'#size' => 5,
'#maxlength' => 10,
'#required' => TRUE,
'#default_value' => !empty($data->booking_price) ? $data->booking_price : '',
);
$form['booking_buttonid'] = array (
'#type' => 'textfield',
'#title' => t('The PayPal button ID'),
'#size' => 20,
'#maxlength' => 20,
'#default_value' => !empty($data->booking_buttonid) ? $data->booking_buttonid : '',
);
$form['booking_late_price'] = array (
'#type' => 'textfield',
'#title' => t('The late booking price relating to this entry'),
'#title' => t('The normal booking price relating to this entry.'),
'#field_prefix' => '$',
'#size' => 5,
'#maxlength' => 10,
'#required' => TRUE,
'#default_value' => !empty($data->booking_late_price) ? $data->booking_late_price : '',
);
$form['booking_buttonid'] = array (
'#type' => 'textfield',
'#title' => t('The PayPal button ID. This setting is deprecated.'),
'#size' => 20,
'#maxlength' => 20,
'#default_value' => !empty($data->booking_buttonid) ? $data->booking_buttonid : '',
);
$form['booking_late_buttonid'] = array (
'#type' => 'textfield',
'#title' => t('The PayPal button ID for late bookings'),
'#title' => t('The PayPal button ID for late bookings. This setting is deprecated.'),
'#size' => 20,
'#maxlength' => 20,
'#default_value' => !empty($data->booking_late_buttonid) ? $data->booking_late_buttonid : '',
@@ -178,13 +178,13 @@ function booking_price_form($node, &$form_state, $create, $editid = 0)
$form['booking_price_active'] = array(
'#type' => 'checkbox',
'#title' => t('Make this price active'),
'#title' => t('Tick to make this price active for the current event.'),
'#default_value' => !empty($data->booking_price_active) ? $data->booking_price_active : '',
);
$form['booking_depositonly'] = array(
'#type' => 'checkbox',
'#title' => t('This is a deposit only price'),
'#title' => t('Tick to indicate that this is a deposit only price.'),
'#default_value' => !empty($data->booking_depositonly) ? $data->booking_depositonly : 0,
);