From 569e12e83cac9116a76aac9a16508432c99137a1 Mon Sep 17 00:00:00 2001 From: ibuler Date: Sun, 25 Jan 2015 21:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=88=E6=9D=83=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jperm/views.py | 3 + static/css/style.css | 3 + templates/jperm/perm_edit.html | 129 +++++++++++++++++++++++++-------- templates/link_css.html | 2 + templates/script.html | 2 + 5 files changed, 107 insertions(+), 32 deletions(-) diff --git a/jperm/views.py b/jperm/views.py index 0f87fe4a0..9902fe08b 100644 --- a/jperm/views.py +++ b/jperm/views.py @@ -32,6 +32,9 @@ def perm_edit(request): header_title, path1, path2 = u'授权编辑 | Perm Edit.', u'jperm', u'perm_edit' if request.method == 'GET': if request.GET.get('id', None): + user_id = request.GET.get('id') + user = User.objects.get(id=user_id) + assets = Asset.objects.all() return render_to_response('jperm/perm_edit.html', locals()) diff --git a/static/css/style.css b/static/css/style.css index 8550c5a87..28ced9696 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -2623,6 +2623,9 @@ a:focus { .b-r { border-right: 1px solid #e7eaec; } +.b-l { + border-left: 1px solid #e7eaec; +} .hr-line-dashed { border-top: 1px dashed #e7eaec; color: #ffffff; diff --git a/templates/jperm/perm_edit.html b/templates/jperm/perm_edit.html index 79d151674..90eb35fd1 100644 --- a/templates/jperm/perm_edit.html +++ b/templates/jperm/perm_edit.html @@ -2,13 +2,40 @@ {% load mytags %} {% block content %} + + {% include 'nav_cat_bar.html' %}
+
-
编辑授权 {{ user.name }} Edit perm info.
+
Basic form Simple login form example
+
-
- {% if error %} -
{{ error }}
- {% endif %} - {% if msg %} -
{{ msg }}
- {% endif %} -
-
- +
+
+
+ +
-
-
- - +
+
+
-
+
+
+
+ + +
+
+
+ +
+

未授权主机

+
+ + +
-
- + +
+
+ + +
-
-
-
+

已授权主机

+
+ +
+
+
+
+
- +
+
+
+ + {% endblock %} \ No newline at end of file diff --git a/templates/link_css.html b/templates/link_css.html index 057f788be..5849bc727 100644 --- a/templates/link_css.html +++ b/templates/link_css.html @@ -1,6 +1,8 @@ + + diff --git a/templates/script.html b/templates/script.html index f63ee35f1..170330146 100644 --- a/templates/script.html +++ b/templates/script.html @@ -27,6 +27,8 @@ + +