mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-01 06:45:55 +00:00
move
This commit is contained in:
parent
c08cee8052
commit
60cb5561f0
@ -1,7 +1,7 @@
|
||||
#coding: utf8
|
||||
|
||||
[base]
|
||||
ip = 192.168.173.129
|
||||
ip = 192.168.20.209
|
||||
port = 80
|
||||
key = 88aaaf7ffe3c6c04
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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(){
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user