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
60cb5561
Commit
60cb5561
authored
Apr 16, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--broken encoding: IBM420_ltr
parent
c08cee80
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
18 deletions
+22
-18
jumpserver.conf
jumpserver.conf
+1
-1
views.py
juser/views.py
+3
-2
base.js
static/js/base.js
+16
-13
dept_perm_edit.html
templates/jperm/dept_perm_edit.html
+2
-2
No files found.
jumpserver.conf
View file @
60cb5561
#coding: utf8
[
base
]
ip
=
192
.
168
.
173
.
12
9
ip
=
192
.
168
.
20
.
20
9
port
=
80
key
=
88
aaaf7ffe3c6c04
...
...
juser/views.py
View file @
60cb5561
...
...
@@ -725,9 +725,10 @@ def user_add_adm(request):
您的角色:
%
s
您的web登录密码:
%
s
您的ssh登录密码:
%
s
密钥下载地址:
%
s
密钥下载地址:
http://
%
s:
%
s/juser/down_key/?id=
%
s
说明: 请登陆后再下载密钥!
"""
%
(
name
,
username
,
dept
.
name
,
'普通用户'
,
password
,
ssh_key_pwd
,
ssh_key_pwd
)
"""
%
(
name
,
username
,
dept
.
name
,
'普通用户'
,
password
,
ssh_key_pwd
,
SEND_IP
,
SEND_PORT
,
user
.
id
)
print
MAIL_FROM
send_mail
(
mail_title
,
mail_msg
,
MAIL_FROM
,
[
email
],
fail_silently
=
False
)
msg
=
u'添加用户
%
s 成功! 用户密码已发送到
%
s 邮箱!'
%
(
username
,
email
)
...
...
static/js/base.js
View file @
60cb5561
...
...
@@ -59,10 +59,13 @@ function GetTableDataBox() {
return
returnData
;
}
function
move
(
from
,
to
)
{
function
move
(
from
,
to
,
from_o
,
to_o
)
{
$
(
"#"
+
from
+
" option"
).
each
(
function
()
{
if
(
$
(
this
).
prop
(
"selected"
)
==
true
)
{
$
(
"#"
+
to
).
append
(
this
);
if
(
typeof
from_o
!==
'undefined'
){
$
(
"#"
+
to_o
).
append
(
$
(
"#"
+
from_o
+
" option[value='"
+
this
.
value
+
"']"
));
}
}
});
}
...
...
@@ -76,12 +79,12 @@ function move_left(from, to) {
});
}
function
move_all
(
from
,
to
)
{
$
(
"#"
+
from
).
children
().
each
(
function
()
{
$
(
"#"
+
to
).
append
(
this
);
});
}
//
function move_all(from, to) {
//
$("#" + from).children().each(function () {
//
$("#" + to).append(this);
//
});
//
}
//
function
selectAll
(){
var
checklist
=
document
.
getElementsByName
(
"selected"
);
...
...
@@ -100,12 +103,12 @@ function selectAll(){
}
function
move_all
(
from
,
to
){
$
(
"#"
+
from
).
children
().
each
(
function
(){
$
(
"#"
+
to
).
append
(
this
);
});
}
//
//
function move_all(from, to){
//
$("#"+from).children().each(function(){
//
$("#"+to).append(this);
//
});
//
}
//function commit_select(form_array){
// $('#{0} option'.format(form_array)).each(function(){
...
...
templates/jperm/dept_perm_edit.html
View file @
60cb5561
...
...
@@ -101,8 +101,8 @@ function search_ip(text, noselect, total){
<div
class=
"col-sm-1"
>
<div
class=
"btn-group"
style=
"margin-top: 60px;"
>
<button
type=
"button"
class=
"btn btn-white"
onclick=
"move('assets', 'asset_select' )"
><i
class=
"fa fa-chevron-right"
></i></button>
<button
type=
"button"
class=
"btn btn-white"
onclick=
"move('asset_select', 'assets')"
><i
class=
"fa fa-chevron-left"
></i>
</button>
<button
type=
"button"
class=
"btn btn-white"
onclick=
"move('assets', 'asset_select'
, 'assets_total', 'asset_select_total'
)"
><i
class=
"fa fa-chevron-right"
></i></button>
<button
type=
"button"
class=
"btn btn-white"
onclick=
"move('asset_select', 'assets'
, 'asset_select_total', 'assets_total'
)"
><i
class=
"fa fa-chevron-left"
></i>
</button>
</div>
</div>
...
...
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