From e9d7798d74dd4dce96e73163806ec5975f409b3e Mon Sep 17 00:00:00 2001 From: Devops Date: Fri, 12 May 2017 17:48:22 +0100 Subject: [PATCH] lib/php/db/field.php --- lib/php/db/field.php | 7 +++++-- www/dbq/html/default.css | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/php/db/field.php b/lib/php/db/field.php index a2cb070a..d3295869 100644 --- a/lib/php/db/field.php +++ b/lib/php/db/field.php @@ -81,9 +81,11 @@ class field extends nb { $html = ''; if ($this->extras) { $html = ''.$this->out($value).''; + } elseif (strpos($this->type,'Zbool') !== false) { - $html .= ''; - $html .= ''; + $html .= 'Yes'; + $html .= 'No'; + } else { $html = '<'.$tag .' name="'.$this->name.'"' @@ -94,6 +96,7 @@ class field extends nb { .($type ? $type : $this->html_type()) .'" value="'.$value.'" />') ; + } return '
' diff --git a/www/dbq/html/default.css b/www/dbq/html/default.css index 8e9a681f..539fddc8 100644 --- a/www/dbq/html/default.css +++ b/www/dbq/html/default.css @@ -295,3 +295,9 @@ form.edit .fields .label span { text-align: left; } +/* +form.edit input[type=checkbox] { + text-align: left; + border: solid 1px red; +} +*/ -- 2.47.3