Added dependant children option to regn form

This commit is contained in:
2015-08-23 17:51:33 +10:00
parent 9b9a8702f5
commit a2e7f769e4
4 changed files with 75 additions and 3 deletions

View File

@@ -281,6 +281,35 @@ function booking_admin() {
'#description' => t('Select whether to cater for married couples in the registration form'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_allow_couples', 0),
);
$form['regn_options']['booking_ask_dependant_children'] = array (
'#type' => 'radios',
'#title' => t('Ask whether a couple has dependant children attending?'),
'#description' => t('Select whether to ask about dependant children of married couples in the registration form'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_ask_dependant_children', 0),
);
$form['regn_options']['booking_dependant_children_text_definition'] = array (
'#type' => 'textfield',
'#title' => t('Text to display about dependant children'),
'#default_value' => variable_get('booking_dependant_children_text_definition', '<b>Please note that only one dependant child under the age of two is allowed.</b>'),
'#description' => 'Text to use on registration form if married couple has said they are bringing children.',
'#size' => 150,
'#maxlength' => 1000,
'#states' => array(
// Only show this field when the 'booking_enable_dietary' radio option is set to No
'visible' => array(
':input[name="booking_ask_dependant_children"]' => array('value' => 1),
),
),
);
$form['regn_options']['booking_dependant_children_text'] = array (
'#type' => 'radios',
'#title' => t('Ask whether a couple has dependant children attending?'),
'#description' => t('Select whether to ask about dependant children of married couples in the registration form'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_ask_dependant_children', 0),
);
$form['regn_options']['booking_enable_medicare'] = array (