mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 01:25:01 +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
|
$pre = (vartrue($options['label'])) ? "<label class='".$labelClass.$active."'{$labelTitle}>" : ""; // Bootstrap compatible markup
|
||||||
$post = (vartrue($options['label'])) ? "<span>".$options['label']."</span></label>" : "";
|
$post = (vartrue($options['label'])) ? "<span>".$options['label']."</span></label>" : "";
|
||||||
unset($options['label']); // not to be used as attribute;
|
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;
|
return $pre.$text.$post;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user