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
8bfd2be2
Commit
8bfd2be2
authored
Jul 10, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 清除系统用户认证信息时提示
parent
b03ac46d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
system_user_detail.html
apps/assets/templates/assets/system_user_detail.html
+16
-4
No files found.
apps/assets/templates/assets/system_user_detail.html
View file @
8bfd2be2
...
@@ -337,10 +337,22 @@ $(document).ready(function () {
...
@@ -337,10 +337,22 @@ $(document).ready(function () {
});
});
}).
on
(
'click'
,
'.btn-clear-auth'
,
function
()
{
}).
on
(
'click'
,
'.btn-clear-auth'
,
function
()
{
var
the_url
=
'{% url "api-assets:system-user-auth-info" pk=system_user.id %}'
;
var
the_url
=
'{% url "api-assets:system-user-auth-info" pk=system_user.id %}'
;
APIUpdateAttr
({
var
name
=
'{{ system_user.name }}'
;
url
:
the_url
,
swal
({
method
:
'DELETE'
,
title
:
'你确定清除该系统用户的认证信息吗 ?'
,
success_message
:
"{% trans 'Clear auth' %}"
+
" {% trans 'success' %}"
text
:
" ["
+
name
+
"] "
,
type
:
"warning"
,
showCancelButton
:
true
,
cancelButtonText
:
'取消'
,
confirmButtonColor
:
"#ed5565"
,
confirmButtonText
:
'确认'
,
closeOnConfirm
:
true
},
function
()
{
APIUpdateAttr
({
url
:
the_url
,
method
:
'DELETE'
,
success_message
:
"{% trans 'Clear auth' %}"
+
" {% trans 'success' %}"
});
});
});
})
})
</script>
</script>
...
...
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