diff --git a/jpermission/urls.py b/jpermission/urls.py new file mode 100644 index 000000000..5d81fe815 --- /dev/null +++ b/jpermission/urls.py @@ -0,0 +1,10 @@ +from django.conf.urls import patterns, include, url + + +urlpatterns = patterns('jpermission.views', + # Examples: + # url(r'^$', 'jumpserver.views.home', name='home'), + # url(r'^blog/', include('blog.urls')), + + (r'^perm_user_list/$', 'perm_user_list'), +) diff --git a/jpermission/views.py b/jpermission/views.py index 91ea44a21..b8b6f196e 100644 --- a/jpermission/views.py +++ b/jpermission/views.py @@ -1,3 +1,5 @@ -from django.shortcuts import render +from django.shortcuts import render_to_response -# Create your views here. + +def perm_user_list(request): + return render_to_response('jperm/perm_user_list.html') diff --git a/jumpserver/urls.py b/jumpserver/urls.py index d5b124159..44bb490c8 100644 --- a/jumpserver/urls.py +++ b/jumpserver/urls.py @@ -9,5 +9,6 @@ urlpatterns = patterns('', (r'^skin_config/$', 'jumpserver.views.skin_config'), (r'^base/$', 'jumpserver.views.base'), (r'^juser/', include('juser.urls')), + (r'^jperm/', include('jpermission.urls')), url(r'^jasset/', include('jasset.urls')), ) diff --git a/templates/jperm/perm_add.html b/templates/jperm/perm_add.html new file mode 100644 index 000000000..7506b04ad --- /dev/null +++ b/templates/jperm/perm_add.html @@ -0,0 +1,151 @@ +{% extends 'base.html' %} +{% load mytags %} + +{% block content %} + {% include 'nav_cat_bar.html' %} +
+
+
+
+
+
添加授权 Add perm info.
+ +
+
+
+ {% if error %} +
{{ error }}
+ {% endif %} + {% if msg %} +
{{ msg }}
+ {% endif %} +
+ +
+ +
+
+
+
+ +
+ + + 登陆web的密码 + +
+
+
+
+ +
+ + + 登陆 Jumpserver 使用的SSH密钥的密码 + +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + + 如果使用password方式,该密码是用户在后端服务器的密码 + +
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+ +{% endblock %} \ No newline at end of file diff --git a/templates/jperm/perm_user_list.html b/templates/jperm/perm_user_list.html new file mode 100644 index 000000000..e3dd1252f --- /dev/null +++ b/templates/jperm/perm_user_list.html @@ -0,0 +1,61 @@ +{% extends 'base.html' %} +{% load mytags %} + +{% block content %} + {% include 'nav_cat_bar.html' %} +
+
+
+
+
+
用户信息 show user info.
+ +
+
+
+ + + + + + + + + {% for user in users %} + + + + + + {% endfor %} + +
ID添加授权
{{ user.id }}{{ user.username }}添加授权
+
+
+ + +
+
+
+
+
+
+
+
+{% endblock %} \ No newline at end of file