From 2896ade5e1257045513f871d59e6e4eaac27e317 Mon Sep 17 00:00:00 2001 From: M Date: Tue, 8 Dec 2015 18:51:20 -0500 Subject: + Added bool field type to Form class --- app/class/form.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/class/form.class.php b/app/class/form.class.php index d3af399..808de27 100644 --- a/app/class/form.class.php +++ b/app/class/form.class.php @@ -77,6 +77,14 @@ class Form ); } + /* + * Add new boolean field to the form + */ + function field_bool($name) + { + $this->field_enum($name, array("true", "false"), "false"); + } + /* * Populate the form with input data from web page */ -- cgit v1.2.3