From 7b65c50b7eb4e652614cc48eecfd3e9c643de2de Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 3 Apr 2024 09:21:24 +0200 Subject: [PATCH] use own code for creating checkboxes --- views/bootstrap/class.Bootstrap.php | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index b228624e6..5ed68d6c3 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1216,9 +1216,29 @@ background-image: linear-gradient(to bottom, #882222, #111111);; case 'input': default: switch($value['type']) { - default: - if(!empty($value['type']) && $value['type'] == 'checkbox' && isset($value['default']) && !empty($value['name'])) + case 'checkbox': + if(isset($value['default']) && !empty($value['name'])) echo ''; + echo '"; + break; + default: if(!empty($value['addon'])) echo ""; echo 'getValue() : $attribute) : ''; $content .= ""; - $content .= ""; + $content .= ""; break; case SeedDMS_Core_AttributeDefinition::type_date: $objvalue = $attribute ? getReadableDate((is_object($attribute) ? $attribute->getValue() : $attribute)) : '';