mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Fixes #4166 - Check-all checkbox class conflict.
This commit is contained in:
@@ -2455,11 +2455,18 @@ class e_form
|
||||
}
|
||||
}
|
||||
|
||||
if(!isset($options['class']))
|
||||
{
|
||||
$options['class'] = '';
|
||||
}
|
||||
|
||||
$options['class'] .= ' form-check-input';
|
||||
|
||||
$pre = (vartrue($options['label'])) ? "<label class='".$labelClass.$active."'{$labelTitle}>" : ""; // Bootstrap compatible markup
|
||||
$post = (vartrue($options['label'])) ? "<span>".$options['label']."</span></label>" : "";
|
||||
unset($options['label']); // not to be used as attribute;
|
||||
|
||||
$text .= "<input class='form-check-input' type='checkbox' name='{$name}' value='{$value}'".$this->get_attributes($options, $name, $value)." />";
|
||||
$text .= "<input type='checkbox' name='{$name}' value='{$value}'".$this->get_attributes($options, $name, $value)." />";
|
||||
|
||||
return $pre.$text.$post;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user