Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
c588436d
Commit
c588436d
authored
Nov 16, 2016
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化模板和api模块
parent
82412831
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
15 deletions
+46
-15
__init__.py
apps/ops/api/__init__.py
+0
-0
serializers.py
apps/ops/api/serializers.py
+0
-0
views.py
apps/ops/api/views.py
+0
-0
create.html
apps/ops/templates/sudo/create.html
+11
-0
detail.html
apps/ops/templates/sudo/detail.html
+11
-0
list.html
apps/ops/templates/sudo/list.html
+11
-0
update.html
apps/ops/templates/sudo/update.html
+11
-0
views.py
apps/ops/views.py
+2
-15
No files found.
apps/ops/api/__init__.py
0 → 100644
View file @
c588436d
apps/ops/api/serializers.py
0 → 100644
View file @
c588436d
apps/ops/api/views.py
0 → 100644
View file @
c588436d
apps/ops/templates/sudo/create.html
0 → 100644
View file @
c588436d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
apps/ops/templates/sudo/detail.html
0 → 100644
View file @
c588436d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
apps/ops/templates/sudo/list.html
0 → 100644
View file @
c588436d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
apps/ops/templates/sudo/update.html
0 → 100644
View file @
c588436d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
apps/ops/views.py
View file @
c588436d
...
...
@@ -7,7 +7,6 @@ from django.views.generic.edit import CreateView, DeleteView, UpdateView
from
django.views.generic.detail
import
DetailView
,
SingleObjectMixin
from
.hands
import
AdminUserRequiredMixin
from
.utils
import
*
class
SudoListView
(
AdminUserRequiredMixin
,
ListView
):
...
...
@@ -38,13 +37,7 @@ class SudoListView(AdminUserRequiredMixin, ListView):
return
super
(
AssetListView
,
self
)
.
get_context_data
(
**
kwargs
)
class
SudoCreateView
(
AdminUserRequiredMixin
,
CreateHostAliasMinxin
,
CreateUserAliasMinxin
,
CreateCmdAliasMinxin
,
CreateRunasAliasMinxin
,
CreateExtralineAliasMinxin
,
CreateView
):
class
SudoCreateView
(
AdminUserRequiredMixin
,
CreateView
):
model
=
Asset
tag_type
=
'asset'
form_class
=
AssetCreateForm
...
...
@@ -72,13 +65,7 @@ class SudoCreateView(AdminUserRequiredMixin,
return
super
(
AssetCreateView
,
self
)
.
get_context_data
(
**
kwargs
)
class
SudoUpdateView
(
AdminUserRequiredMixin
,
UpdateHostAliasMinxin
,
UpdateUserAliasMinxin
,
UpdateCmdAliasMinxin
,
UpdateRunasAliasMinxin
,
UpdateExtralineAliasMinxin
,
UpdateView
):
class
SudoUpdateView
(
AdminUserRequiredMixin
,
UpdateView
):
model
=
Asset
form_class
=
AssetCreateForm
template_name
=
'assets/asset_update.html'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment