From 7a81cd16c5341b4773e11a84c7b231d23e5f56d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Fri, 17 Mar 2017 06:55:04 +0100 Subject: [PATCH] Refactor admin/auth/new.tmpl (#1277) --- templates/admin/auth/new.tmpl | 119 +------------------------ templates/admin/auth/source/ldap.tmpl | 65 ++++++++++++++ templates/admin/auth/source/oauth.tmpl | 23 +++++ templates/admin/auth/source/smtp.tmpl | 28 ++++++ 4 files changed, 119 insertions(+), 116 deletions(-) create mode 100644 templates/admin/auth/source/ldap.tmpl create mode 100644 templates/admin/auth/source/oauth.tmpl create mode 100644 templates/admin/auth/source/smtp.tmpl diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 59990fc37e..a18a782fc1 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -29,101 +29,10 @@ -
-
- - -
-
- - -
-
- - -
-
- - -
- -
- - -

{{.i18n.Tr "admin.auths.bind_password_helper"}}

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
+ {{ template "admin/auth/source/ldap" . }} -
-
- - -
-
- - -
-
- - -
-
- - -

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

-
-
+ {{ template "admin/auth/source/smtp" . }}
@@ -132,29 +41,7 @@
-
-
- - -
-
- - -
-
- - -
-
+ {{ template "admin/auth/source/oauth" . }}
diff --git a/templates/admin/auth/source/ldap.tmpl b/templates/admin/auth/source/ldap.tmpl new file mode 100644 index 0000000000..2131950212 --- /dev/null +++ b/templates/admin/auth/source/ldap.tmpl @@ -0,0 +1,65 @@ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +

{{.i18n.Tr "admin.auths.bind_password_helper"}}

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl new file mode 100644 index 0000000000..4d8e12e028 --- /dev/null +++ b/templates/admin/auth/source/oauth.tmpl @@ -0,0 +1,23 @@ +
+
+ + +
+
+ + +
+
+ + +
+
diff --git a/templates/admin/auth/source/smtp.tmpl b/templates/admin/auth/source/smtp.tmpl new file mode 100644 index 0000000000..d4c83c171a --- /dev/null +++ b/templates/admin/auth/source/smtp.tmpl @@ -0,0 +1,28 @@ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +

{{.i18n.Tr "admin.auths.allowed_domains_helper"}}

+
+