mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Add a few CSS classes
- add class `row` to form-group (because it contains columns) and move the tag to the details function - add class `col-sm-12` to boolean values - add new class `settings-box` to allow targeting only settings boxes Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -104,6 +104,7 @@ function valueDetails(key, value) {
|
||||
|
||||
case "boolean": {
|
||||
content +=
|
||||
'<div class="col-sm-12">' +
|
||||
'<div><input type="checkbox" ' +
|
||||
(value.value ? " checked" : "") +
|
||||
' id="' +
|
||||
@@ -116,7 +117,7 @@ function valueDetails(key, value) {
|
||||
key +
|
||||
'-checkbox">Enabled ' +
|
||||
defaultValueHint +
|
||||
"</label>" +
|
||||
"</label></div>" +
|
||||
" </div>";
|
||||
|
||||
break;
|
||||
@@ -262,7 +263,7 @@ function valueDetails(key, value) {
|
||||
}
|
||||
}
|
||||
|
||||
return content;
|
||||
return '<div class="form-group row">' + content + "</div>";
|
||||
}
|
||||
|
||||
function generateRow(topic, key, value) {
|
||||
@@ -292,9 +293,8 @@ function generateRow(topic, key, value) {
|
||||
"</p>" +
|
||||
"</div>" +
|
||||
'<div class="box-body">' +
|
||||
'<div class="form-group">' +
|
||||
valueDetails(key, value) +
|
||||
"</div></div></div> ";
|
||||
"</div></div> ";
|
||||
|
||||
var topKey = key.split(".")[0];
|
||||
var elem = $("#advanced-content-" + topKey + "-flex");
|
||||
|
||||
Reference in New Issue
Block a user