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:
RD WebDesign
2024-01-17 20:29:00 -03:00
parent e9df006489
commit 84bd977f87

View File

@@ -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");