1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Fixes #4166 - Check-all checkbox class conflict.

This commit is contained in:
Cameron
2020-05-15 11:47:07 -07:00
parent 4a25bcd414
commit d9037999dd
2 changed files with 13 additions and 6 deletions

View File

@@ -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