From bf58679390b9045054139fd0f43bef9bb972f3e6 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 11 May 2014 18:10:37 +0800 Subject: add support for smtp authentication --- templates/admin/auths/edit.tmpl | 60 ++++++++++++++++++++++++++++++++++++----- templates/admin/auths/new.tmpl | 53 ++++++++++++++++++++---------------- 2 files changed, 83 insertions(+), 30 deletions(-) (limited to 'templates/admin') diff --git a/templates/admin/auths/edit.tmpl b/templates/admin/auths/edit.tmpl index e040ea8f..56c4db74 100644 --- a/templates/admin/auths/edit.tmpl +++ b/templates/admin/auths/edit.tmpl @@ -14,18 +14,16 @@ {{.CsrfTokenHtml}} {{template "base/alert" .}} + {{$type := .Source.Type}}
+
- + {{range $key, $val := .LoginTypes}} + {{if eq $key $type}}{{$val}}{{end}} + {{end}}
-
@@ -33,6 +31,8 @@
+ {{if eq $type 2}} +
@@ -81,7 +81,53 @@
+ {{else}} + {{if eq $type 3}} + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ {{end}} + {{end}} +
+ +
+ +
+
+
diff --git a/templates/admin/auths/new.tmpl b/templates/admin/auths/new.tmpl index 5c0cccca..287c996c 100644 --- a/templates/admin/auths/new.tmpl +++ b/templates/admin/auths/new.tmpl @@ -16,104 +16,111 @@
- {{range $key, $val := .LoginTypes}} {{end}}
-
-
+
- +
- +
- +
- +
- +
- +
- +
- +
- +
- -
-- cgit v1.2.3