add more detail to study group definitions and email token

This commit is contained in:
Nathan Coad
2018-06-16 18:39:55 +10:00
parent be5d1e8c2f
commit ed45d52007
5 changed files with 57 additions and 20 deletions

View File

@@ -112,14 +112,30 @@ function booking_studygroups_define_form($node, &$form_state, $create, $editid =
}
if(!isset($form_state['storage']['confirm'])) {
$form['booking_studygroup_weekday'] = array (
'#type' => 'textfield',
'#title' => t('Day of the week this study group will be held (eg Monday)'),
'#size' => 60,
'#maxlength' => 150,
'#required' => TRUE,
'#default_value' => !empty($data->booking_studygroup_weekday) ? $data->booking_studygroup_weekday : '',
);
$form['booking_studygroup_descrip'] = array (
'#type' => 'textfield',
'#title' => t('Description of this study group (eg Monday)'),
'#title' => t('Description of this study group (eg Study Group 1)'),
'#size' => 60,
'#maxlength' => 150,
'#required' => TRUE,
'#default_value' => !empty($data->booking_studygroup_descrip) ? $data->booking_studygroup_descrip : '',
);
);
$form['booking_studygroup_explanation'] = array (
'#type' => 'textfield',
'#title' => t('Explanation for this study group (eg Matthew chapter 1)'),
'#size' => 60,
'#maxlength' => 150,
'#required' => TRUE,
'#default_value' => !empty($data->booking_studygroup_explanation) ? $data->booking_studygroup_explanation : '',
);
$form['booking_num_group_sessions'] = array (
'#type' => 'textfield',