summaryrefslogtreecommitdiffstats
path: root/modules-available/baseconfig
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-27 16:06:54 +0100
committerSimon Rettberg2019-03-27 20:40:55 +0100
commite56d2d94824addfa16ea3afb9974616f86253f2e (patch)
treed3d58168f75a8e07e5f0d6ba7af63681240b183b /modules-available/baseconfig
parent[locationinfo] add nowrap to clients column (diff)
downloadslx-admin-e56d2d94824addfa16ea3afb9974616f86253f2e.tar.gz
slx-admin-e56d2d94824addfa16ea3afb9974616f86253f2e.tar.xz
slx-admin-e56d2d94824addfa16ea3afb9974616f86253f2e.zip
[baseconfig] Remove bootstrap-switch, use checkbox
Diffstat (limited to 'modules-available/baseconfig')
-rw-r--r--modules-available/baseconfig/page.inc.php1
-rw-r--r--modules-available/baseconfig/templates/_page.html12
2 files changed, 7 insertions, 6 deletions
diff --git a/modules-available/baseconfig/page.inc.php b/modules-available/baseconfig/page.inc.php
index 97fb6072..3bd96223 100644
--- a/modules-available/baseconfig/page.inc.php
+++ b/modules-available/baseconfig/page.inc.php
@@ -227,7 +227,6 @@ class Page_BaseConfig extends Page
'target_module' => $this->targetModule,
'edit_disabled' => $editForbidden ? 'disabled' : '',
) + $this->qry_extra);
- Module::isAvailable('bootstrap_switch');
}
private function fillSettings($vars, &$settings, &$missing, $table, $fields, $where, $params, $sourceName)
diff --git a/modules-available/baseconfig/templates/_page.html b/modules-available/baseconfig/templates/_page.html
index 110ee5ec..27b40e37 100644
--- a/modules-available/baseconfig/templates/_page.html
+++ b/modules-available/baseconfig/templates/_page.html
@@ -29,11 +29,13 @@
{{#defaultvalue}}{{lang_defaultValue}}:{{/defaultvalue}}
{{defaultvalue}}
</div>
- <input class="bs-switch" name="override[{{setting}}]" id="CB_{{setting}}" type="checkbox" {{checked}} {{edit_disabled}}>
- <label for="CB_{{setting}}">
- {{#override}}{{lang_enableOverride}}{{/override}}
- {{^override}}{{lang_settingActive}}{{/override}}
- </label>
+ <div class="checkbox">
+ <input name="override[{{setting}}]" id="CB_{{setting}}" type="checkbox" {{checked}} {{edit_disabled}}>
+ <label for="CB_{{setting}}">
+ {{#override}}{{lang_enableOverride}}{{/override}}
+ {{^override}}{{lang_settingActive}}{{/override}}
+ </label>
+ </div>
</div>
<div class="col-md-5">
{{{item}}}