From: Devops Date: Fri, 12 May 2017 16:48:22 +0000 (+0100) Subject: lib/php/db/field.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=e9d7798d74dd4dce96e73163806ec5975f409b3e;p=nb.git lib/php/db/field.php --- 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; +} +*/