mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
add class 'form-control' to some select tags
This commit is contained in:
parent
f6fbcbadfa
commit
585fa964d5
|
@ -1780,7 +1780,7 @@ $(document).ready(function() {
|
||||||
if($users) {
|
if($users) {
|
||||||
$allowempty = $attrdef->getMinValues() == 0;
|
$allowempty = $attrdef->getMinValues() == 0;
|
||||||
$allowmultiple = $attrdef->getMultipleValues();
|
$allowmultiple = $attrdef->getMultipleValues();
|
||||||
$content .= "<select class=\"chzn-select\"".($allowempty ? " data-allow-clear=\"true\"" : "")."\" name=\"".$fieldname."[".$attrdef->getId()."]".($allowmultiple ? '[]' : '')."\"".($allowmultiple ? " multiple" : "")." data-placeholder=\"".getMLText("select_user")."\">";
|
$content .= "<select class=\"form-control chzn-select\"".($allowempty ? " data-allow-clear=\"true\"" : "")."\" name=\"".$fieldname."[".$attrdef->getId()."]".($allowmultiple ? '[]' : '')."\"".($allowmultiple ? " multiple" : "")." data-placeholder=\"".getMLText("select_user")."\">";
|
||||||
if($allowempty)
|
if($allowempty)
|
||||||
$content .= "<option value=\"\"></option>";
|
$content .= "<option value=\"\"></option>";
|
||||||
foreach($users as $curuser) {
|
foreach($users as $curuser) {
|
||||||
|
@ -1800,7 +1800,7 @@ $(document).ready(function() {
|
||||||
if($groups) {
|
if($groups) {
|
||||||
$allowempty = $attrdef->getMinValues() == 0;
|
$allowempty = $attrdef->getMinValues() == 0;
|
||||||
$allowmultiple = $attrdef->getMultipleValues();
|
$allowmultiple = $attrdef->getMultipleValues();
|
||||||
$content .= "<select class=\"chzn-select\"".($allowempty ? " data-allow-clear=\"true\"" : "")."\" name=\"".$fieldname."[".$attrdef->getId()."]".($allowmultiple ? '[]' : '')."\"".($allowmultiple ? " multiple" : "")." data-placeholder=\"".getMLText("select_group")."\">";
|
$content .= "<select class=\"form-control chzn-select\"".($allowempty ? " data-allow-clear=\"true\"" : "")."\" name=\"".$fieldname."[".$attrdef->getId()."]".($allowmultiple ? '[]' : '')."\"".($allowmultiple ? " multiple" : "")." data-placeholder=\"".getMLText("select_group")."\">";
|
||||||
if($allowempty)
|
if($allowempty)
|
||||||
$content .= "<option value=\"\"></option>";
|
$content .= "<option value=\"\"></option>";
|
||||||
foreach($groups as $curgroup) {
|
foreach($groups as $curgroup) {
|
||||||
|
@ -1823,7 +1823,7 @@ $(document).ready(function() {
|
||||||
} else {
|
} else {
|
||||||
$content .= "\" data-allow-clear=\"true\"";
|
$content .= "\" data-allow-clear=\"true\"";
|
||||||
}
|
}
|
||||||
$content .= "".((!$norequire && $attrdef->getMinValues() > 0) ? ' required' : '')." class=\"chzn-select\" data-placeholder=\"".getMLText("select_value")."\">";
|
$content .= "".((!$norequire && $attrdef->getMinValues() > 0) ? ' required' : '')." class=\"form-control chzn-select\" data-placeholder=\"".getMLText("select_value")."\">";
|
||||||
if(!$attrdef->getMultipleValues()) {
|
if(!$attrdef->getMultipleValues()) {
|
||||||
$content .= "<option value=\"\"></option>";
|
$content .= "<option value=\"\"></option>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user