From 27f9b7a14452f8d95a83946727e5642ec35da260 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Sun, 11 May 2014 21:26:47 +0800 Subject: [PATCH 1/2] add user new js --- templates/admin/users/new.tmpl | 67 ++++++++++++++++++++++------------ 1 file changed, 44 insertions(+), 23 deletions(-) diff --git a/templates/admin/users/new.tmpl b/templates/admin/users/new.tmpl index b4843a99ca..0e3fee8b29 100644 --- a/templates/admin/users/new.tmpl +++ b/templates/admin/users/new.tmpl @@ -16,7 +16,7 @@
- {{range $key, $val := .LoginSources}} @@ -25,11 +25,13 @@
-
- -
- -
+
@@ -46,29 +48,48 @@
-
- -
- -
-
+
+
+ +
+ +
+
-
- -
- -
-
-
-
-
- -
+
+ +
+ +
+
+
+
+
+ +
+
+ {{template "base/footer" .}} \ No newline at end of file From fd7b0a2ba4f83acf876c1797326a5c8133998cf7 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Sun, 11 May 2014 21:27:06 +0800 Subject: [PATCH 2/2] add user new js --- templates/admin/users/new.tmpl | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/admin/users/new.tmpl b/templates/admin/users/new.tmpl index 0e3fee8b29..4f4866c4b6 100644 --- a/templates/admin/users/new.tmpl +++ b/templates/admin/users/new.tmpl @@ -79,7 +79,6 @@ $(function(){ $('#login-type').on("change",function(){ var v = $(this).val(); - alert(v.indexOf("0-")+1); if(v.indexOf("0-")+1){ $('.auth-name').toggleHide(); $(".pwd").find("input").attr("required","required")