mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
add label to checkboxes
This commit is contained in:
parent
7b65c50b7e
commit
bad9db377b
|
@ -1218,6 +1218,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
foreach($value['attributes'] as $a)
|
||||
echo ' '.$a[0].'="'.$a[1].'"';
|
||||
echo ">";
|
||||
echo '<label class="form-check-label" '.($value['id'] ?? 'for="'.$value['id'].'"').'>'.($value['label'] ?? $value['label']).'</label>';
|
||||
echo "</div>";
|
||||
break;
|
||||
default:
|
||||
|
@ -1973,6 +1974,7 @@ $(document).ready(function() {
|
|||
$objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : '';
|
||||
$content .= "<input type=\"hidden\" name=\"".$attr_name."\" value=\"\" />";
|
||||
$content .= "<input type=\"checkbox\" id=\"".$attr_id."\" name=\"".$attr_name."\" value=\"1\" ".($objvalue ? 'checked' : '')." />";
|
||||
$content .= '<label class="form-check-label" for="'.$attr_id.'"></label>';
|
||||
break;
|
||||
case SeedDMS_Core_AttributeDefinition::type_date:
|
||||
$objvalue = $attribute ? getReadableDate((is_object($attribute) ? $attribute->getValue() : $attribute)) : '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user