more internal form tweaks

This commit is contained in:
2016-06-11 14:29:11 +10:00
parent 88da4bd0d0
commit f6e227ba56

View File

@@ -365,7 +365,7 @@ function booking_form($node, &$form_state, $inserting = FALSE)
foreach ($partners as $row) foreach ($partners as $row)
$partner_options[$row->nid] = $row->booking_firstname . ' ' . $row->booking_lastname; $partner_options[$row->nid] = $row->booking_firstname . ' ' . $row->booking_lastname;
//create a select field //create a select field
$form['your-details']['booking_partner_id'] = array( $form['internal-details']['booking_partner_id'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => t('Choose Spouse'), '#title' => t('Choose Spouse'),
'#default_value' => $data->booking_partner_id, '#default_value' => $data->booking_partner_id,
@@ -373,7 +373,7 @@ function booking_form($node, &$form_state, $inserting = FALSE)
); );
//add the boyfriend/girlfriend field in here too //add the boyfriend/girlfriend field in here too
$form['your-details']['booking_bf_gf_nid'] = array( $form['internal-details']['booking_bf_gf_nid'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Registration ID of Boyfriend/Girlfriend to be placed in the same discussion groups as you.'), '#title' => t('Registration ID of Boyfriend/Girlfriend to be placed in the same discussion groups as you.'),
'#maxlength' => 15, '#maxlength' => 15,
@@ -420,7 +420,7 @@ function booking_form($node, &$form_state, $inserting = FALSE)
'#value' => 1 '#value' => 1
); );
$form['your-details']['booking_barcode'] = array( $form['internal-details']['booking_barcode'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Barcode'), '#title' => t('Barcode'),
'#maxlength' => 30, '#maxlength' => 30,
@@ -429,7 +429,7 @@ function booking_form($node, &$form_state, $inserting = FALSE)
'#default_value' => !empty($data->booking_barcode) ? $data->booking_barcode : '' '#default_value' => !empty($data->booking_barcode) ? $data->booking_barcode : ''
); );
$form['your-details']['booking_luckynum'] = array( $form['internal-details']['booking_luckynum'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Lucky Number'), '#title' => t('Lucky Number'),
'#maxlength' => 30, '#maxlength' => 30,
@@ -438,7 +438,7 @@ function booking_form($node, &$form_state, $inserting = FALSE)
'#default_value' => !empty($data->booking_luckynum) ? $data->booking_luckynum : '' '#default_value' => !empty($data->booking_luckynum) ? $data->booking_luckynum : ''
); );
$form['your-details']['booking_readinggroup'] = array( $form['internal-details']['booking_readinggroup'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Reading Group Allocation'), '#title' => t('Reading Group Allocation'),
'#maxlength' => 100, '#maxlength' => 100,