From eade9d466c9e3be2be4753ee4367356b356d2dc4 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 22 Mar 2017 17:12:52 +0100 Subject: Backend credentials translation added. Bugfix: Checkboxes instead of bs switches were shown in the server settings --- .../locationinfo/templates/server-settings.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'modules-available/locationinfo/templates/server-settings.html') 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('
\
\
\ -
\ +
\
\
'); } else if ("{{type}}" == "int") { $("#credentials-list").append('
\
\
\ -
\ +
\ +
\ +
'); + } else if ("{{type}}" == "password") { + $("#credentials-list").append('
\ +
\ +
\ +
\
\
'); } else if ("{{type}}" == "bool") { @@ -124,7 +131,7 @@ \
\ '); - $('#bs-{{uid}}').bootstrapSwitch({ + $('#input-{{uid}}').bootstrapSwitch({ size: "small" }); } else if ("{{type}}" == "array") { -- cgit v1.2.3-55-g7522