From fecf9390ef2abd42edb9fdb79d8d91147cca0e91 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 16 Dec 2017 22:28:12 +0100 Subject: [PATCH] Change SSL Mode from checkbox to string in admin page (#3211) Closes #3207 Use a string, not a checkbox because "require", "verify-full", "verify-ca" and "disable" values are supported ... --- templates/admin/config.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 9ebb57968..fd9f4f330 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -99,7 +99,7 @@
{{.i18n.Tr "admin.config.db_user"}}
{{if .DbCfg.User}}{{.DbCfg.User}}{{else}}-{{end}}
{{.i18n.Tr "admin.config.db_ssl_mode"}}
-
{{.i18n.Tr "admin.config.db_ssl_mode_helper"}}
+
{{if .DbCfg.SSLMode}}{{.DbCfg.SSLMode}}{{else}}-{{end}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}
{{.i18n.Tr "admin.config.db_path"}}
{{if .DbCfg.Path}}{{.DbCfg.Path}}{{else}}-{{end}} {{.i18n.Tr "admin.config.db_path_helper"}}