From 121a81a2c554b2de0de89ab7749fe691b5d1aba7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 11 Sep 2015 12:03:08 -0400 Subject: finish new edit auth UI --- templates/admin/auth/edit.tmpl | 300 +++++++++++++++++++++-------------------- templates/admin/auth/new.tmpl | 56 ++++---- 2 files changed, 182 insertions(+), 174 deletions(-) (limited to 'templates') diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 398815c302..7de07ff26a 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -1,155 +1,163 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -
-
-
- {{template "admin/nav" .}} -
-
- {{template "ng/base/alert" .}} -
-
-
- {{.i18n.Tr "admin.auths.edit"}} -
-
- {{.CsrfTokenHtml}} - - {{$type := .Source.Type}} -
- - - -
-
- - -
+{{template "base/head" .}} +
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.edit"}} +

+
+ + {{.CsrfTokenHtml}} + +
+ + + {{.Source.TypeName}} +
+
+ + +
- {{if eq $type 2 5}} -
- - -
-
- - -
-
- - -
- {{if eq $type 2}} -
- - -
-
- - -
-
- - -
- {{end}} - {{if eq $type 5}} -
- - -
- {{end}} -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
+ + {{if or .Source.IsLDAP .Source.IsDLDAP}} + {{ $cfg:=.Source.LDAP }} +
+ + +
+
+ + +
+ {{if .Source.IsLDAP}} +
+ + +
+ +
+ + +

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

+
+
+ + +
+ {{end}} + {{if .Source.IsDLDAP}} +
+ + +
+ {{end}} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ {{end}} + + {{if .Source.IsSMTP}} + {{ $cfg:=.Source.SMTP }} +
+ + +
+
+ + +
+
+ + +
+ {{end}} - {{else if eq $type 3}} -
- - -
-
- - -
-
- - -
+ + {{if .Source.IsPAM}} + {{ $cfg:=.Source.PAM }} +
+ + +
+ {{end}} - {{else if eq $type 4}} -
- - -
- {{end}} +
+
+ + +
+
+ {{if .Source.IsSMTP}} +
+
+ + +
+
+ {{end}} +
+
+ + +
+
+
+
+ + +
+
-
- {{if eq $type 3}} - - - {{.i18n.Tr "admin.auths.enable_tls"}} -
- - - {{.i18n.Tr "admin.auths.skip_tls_verify"}} -
- {{end}} - - - {{.i18n.Tr "admin.auths.enable_auto_register"}} -
- - - {{.i18n.Tr "admin.auths.activated"}} -
-
- - -       - -
-
-

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

-

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

-
- - -
- -
-
-
+
+ +
{{.i18n.Tr "admin.auths.delete"}}
+
+
+
+
+ + -{{template "ng/base/footer" .}} +{{template "base/footer" .}} diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 71578460c9..06bcb8dfac 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -33,50 +33,50 @@
- - + +
- - + +
- - + +
- - -

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

+ + +

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

- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
@@ -96,12 +96,12 @@
- - + +
- - + +
@@ -137,7 +137,7 @@
- +
-- cgit v1.2.3