From 90cba9cb0e58e1b0c0d41c109ebf69aff480955e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 28 Sep 2009 12:51:18 +0000 Subject: [PATCH] added select-bool widget with options 0 => 'no',1 => 'yes' --> can be used with nextmatch custom filter to filter by a boolean column --- etemplate/inc/class.select_widget.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/inc/class.select_widget.inc.php b/etemplate/inc/class.select_widget.inc.php index 2ef63fcb07..fe53ec3c63 100644 --- a/etemplate/inc/class.select_widget.inc.php +++ b/etemplate/inc/class.select_widget.inc.php @@ -48,6 +48,7 @@ class select_widget 'select-number' => 'Select Number', 'select-app' => 'Select Application', 'select-lang' => 'Select Language', + 'select-bool' => 'Select yes or no', ); /** * @var array @@ -125,6 +126,10 @@ class select_widget $cell['sel_options'] = array('','low','normal','high'); break; + case 'select-bool': // equal to checkbox, can be used with nextmatch-customfilter to filter a boolean column + $cell['sel_options'] = array(0 => 'no',1 => 'yes'); + break; + case 'select-access': $cell['sel_options'] = array( 'private' => 'Private',