From 0b79f8e3452349e7ca5c7f51c7be8480fa6dc4eb Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Sat, 24 Jan 2015 16:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jperm/views.py | 7 +++ templates/jperm/perm_edit.html | 78 ++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 templates/jperm/perm_edit.html diff --git a/jperm/views.py b/jperm/views.py index 559b002a1..54b08d353 100644 --- a/jperm/views.py +++ b/jperm/views.py @@ -28,6 +28,13 @@ def perm_host(request): return render_to_response('jperm/perm_host.html', locals()) +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): + pass + + def perm_add(request): header_title, path1, path2 = u'添加授权 | Add User perm.', u'授权管理', u'添加授权' if request.method == 'GET': diff --git a/templates/jperm/perm_edit.html b/templates/jperm/perm_edit.html new file mode 100644 index 000000000..79d151674 --- /dev/null +++ b/templates/jperm/perm_edit.html @@ -0,0 +1,78 @@ +{% extends 'base.html' %} +{% load mytags %} + +{% block content %} + {% include 'nav_cat_bar.html' %} +
+
+
+
+
+
编辑授权 {{ user.name }} Edit perm info.
+ +
+
+
+ {% if error %} +
{{ error }}
+ {% endif %} + {% if msg %} +
{{ msg }}
+ {% endif %} +
+
+ +
+
+
+
+ + +
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+
+
+ +{% endblock %} \ No newline at end of file