diff options
author | Jannik Schönartz | 2017-03-22 17:12:52 +0100 |
---|---|---|
committer | Jannik Schönartz | 2017-03-22 17:12:52 +0100 |
commit | eade9d466c9e3be2be4753ee4367356b356d2dc4 (patch) | |
tree | eb6c6205b2e916a2b4e17290a536b0fb1cba76bf /modules-available/locationinfo/templates/server-settings.html | |
parent | Merge branch 'location-info-panel' of git.openslx.org:openslx-ng/slx-admin in... (diff) | |
download | slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.tar.gz slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.tar.xz slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.zip |
Backend credentials translation added. Bugfix: Checkboxes instead of bs switches were shown in the server settings
Diffstat (limited to 'modules-available/locationinfo/templates/server-settings.html')
-rw-r--r-- | modules-available/locationinfo/templates/server-settings.html | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/modules-available/locationinfo/templates/server-settings.html b/modules-available/locationinfo/templates/server-settings.html index 641873ef..a2bbdf8f 100644 --- a/modules-available/locationinfo/templates/server-settings.html +++ b/modules-available/locationinfo/templates/server-settings.html @@ -107,14 +107,21 @@ $("#credentials-list").append('<div class="list-group-item"><div class="row">\ <div class="col-md-3"><label>{{name}}</label></div>\ <div class="col-md-7">\ - <input required class="form-control" id="input-{{uid}}" {{#mask}}type="password"{{/mask}}{{^mask}}type="text"{{/mask}} name="{{uid}}" value="{{value}}" form="settingsForm"></div>\ + <input required class="form-control" id="input-{{uid}}" type="text" name="{{uid}}" value="{{value}}" form="settingsForm"></div>\ <div class="col-md-2"><a class="btn btn-default" id="help-{{uid}}" title="{{title}}"><span class="glyphicon glyphicon-question-sign"></span></a></div>\ </div></div>'); } else if ("{{type}}" == "int") { $("#credentials-list").append('<div class="list-group-item"><div class="row">\ <div class="col-md-3"><label>{{name}}</label></div>\ <div class="col-md-7">\ - <input required class="form-control" id="input-{{uid}}" {{#mask}}type="password" pattern="[0-9]*"{{/mask}}{{^mask}}type="number"{{/mask}} name="{{uid}}" value="{{value}}" form="settingsForm"></div>\ + <input required class="form-control" id="input-{{uid}}" type="number" name="{{uid}}" value="{{value}}" form="settingsForm"></div>\ + <div class="col-md-2"><a class="btn btn-default" id="help-{{uid}}" title="{{title}}"><span class="glyphicon glyphicon-question-sign"></span></a></div>\ + </div></div>'); + } else if ("{{type}}" == "password") { + $("#credentials-list").append('<div class="list-group-item"><div class="row">\ + <div class="col-md-3"><label>{{name}}</label></div>\ + <div class="col-md-7">\ + <input required class="form-control" id="input-{{uid}}" {{#mask}}type="password"{{/mask}}{{^mask}}type="text"{{/mask}} name="{{uid}}" value="{{value}}" form="settingsForm"></div>\ <div class="col-md-2"><a class="btn btn-default" id="help-{{uid}}" title="{{title}}"><span class="glyphicon glyphicon-question-sign"></span></a></div>\ </div></div>'); } else if ("{{type}}" == "bool") { @@ -124,7 +131,7 @@ <input class="bs-switch" id="input-{{uid}}" type="checkbox" name="{{uid}}" value="true" form="settingsForm" {{#value}}checked{{/value}}></div>\ <div class="col-md-2"><a class="btn btn-default" id="help-{{uid}}" title="{{title}}"><span class="glyphicon glyphicon-question-sign"></span></a></div>\ </div></div>'); - $('#bs-{{uid}}').bootstrapSwitch({ + $('#input-{{uid}}').bootstrapSwitch({ size: "small" }); } else if ("{{type}}" == "array") { |