From 16a051f4a0680fa427d21561404abe24ae614676 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 23 Jan 2015 23:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- juser/views.py | 4 +++- templates/juser/user_add.html | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/juser/views.py b/juser/views.py index 2d79f9694..8566e5243 100644 --- a/juser/views.py +++ b/juser/views.py @@ -189,7 +189,8 @@ def user_del(request): def user_edit(request): header_title, path1, path2 = '编辑用户 | Edit User', 'juser', 'user_edit' - disabled = 'disabled' + hidden = "hidden" + li_class = "disabled" if request.method == 'GET': username = request.GET.get('username', None) if not username: @@ -366,6 +367,7 @@ def user_add(request): header_title, path1, path2 = '添加用户 | Add User', 'juser', 'user_add' user_role = {'SU': u'超级管理员', 'GA': u'组管理员', 'CU': u'普通用户'} all_group = UserGroup.objects.all() + li_class = "hidden" if request.method == 'POST': username = request.POST.get('username', None) password = request.POST.get('password', None) diff --git a/templates/juser/user_add.html b/templates/juser/user_add.html index 80c9aa217..caccef2c8 100644 --- a/templates/juser/user_add.html +++ b/templates/juser/user_add.html @@ -38,8 +38,13 @@
- +
+