Adding commitee flag

This commit is contained in:
2014-05-14 17:44:45 +10:00
parent bbcb28cfc7
commit 71772edbd5
6 changed files with 143 additions and 50 deletions

View File

@@ -110,7 +110,7 @@ function booking_admin() {
'#options' => _booking_country_options(),
'#default_value' => variable_get('booking_default_country', 'Australia'),
);
//TODO: reverse the logic of the values
$form['misc']['booking_auto_confirm_email'] = array (
'#type' => 'radios',
'#title' => t('Automatic Registration Email'),
@@ -118,6 +118,13 @@ function booking_admin() {
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_auto_confirm_email', 0),
);
$form['misc']['booking_auto_workflow_email'] = array (
'#type' => 'radios',
'#title' => t('Automatic Workflow Email'),
'#description' => t('Automatically send workflow emails such as status changes, travel details received, etc'),
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_auto_workflow_email', 0),
);
$form['misc']['booking_auto_show_on_lists'] = array (
'#type' => 'radios',
'#title' => t('Show on lists once booked in?'),
@@ -201,6 +208,14 @@ function booking_admin() {
'#options' => array (0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_enable_studygroups', 0),
);
$form['misc']['booking_studygroup_count'] = array (
'#type' => 'textfield',
'#title' => t('Number of study groups'),
'#description' => t("Total number of study groups in use."),
'#size' => 3,
'#maxlength' => 3,
'#default_value' => variable_get('booking_studygroup_count','0'),
);
$form['misc']['booking_csv_exclude_fields'] = array (
'#type' => 'textfield',
'#title' => t('Fields to exclude from CSV report'),
@@ -310,6 +325,7 @@ function booking_manual_email()
foreach($result as $data)
{
//$paid = _booking_amount_owing($data);
$paid = _booking_amount_owing($data->nid);
$options[$data->nid] = array (
'booking_nid' => l(t('!id', array('!id' => $data->nid)), t('node/!id', array('!id' => $data->nid))),