diff --git a/application/helpers/MY_form_helper.php b/application/helpers/MY_form_helper.php index 3234974..f6e27fc 100644 --- a/application/helpers/MY_form_helper.php +++ b/application/helpers/MY_form_helper.php @@ -43,5 +43,19 @@ if (!function_exists('form_yesno')) { } } +if (!function_exists('form_boolean')) { + /** + * Shows a boolean selection. + * + * @param string $name + * @param mixed $selected + * @param string $extra + * @return string + */ + function form_boolean($name = '', $selected = array(), $extra = '') { + return form_dropdown($name, array('true' => _('True'), 'false' => _('False')), $selected, $extra); + } +} + /* End of file MY_form_helper.php */ /* Location: ./application/helpers/MY_form_helper.php */ diff --git a/application/views/experiments/new.php b/application/views/experiments/new.php index 6d83e4f..e058d22 100644 --- a/application/views/experiments/new.php +++ b/application/views/experiments/new.php @@ -101,8 +101,16 @@ - + + + +