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
12a0a35a
Commit
12a0a35a
authored
9 years ago
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload page: need to fix click problem, want to show the list of machines, TODO
parent
09087a4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
6 deletions
+73
-6
dropzone.js
static/js/dropzone/dropzone.js
+1
-1
upload.html
templates/upload.html
+72
-5
No files found.
static/js/dropzone/dropzone.js
View file @
12a0a35a
...
@@ -662,7 +662,7 @@
...
@@ -662,7 +662,7 @@
this
.
element
.
setAttribute
(
"enctype"
,
"multipart/form-data"
);
this
.
element
.
setAttribute
(
"enctype"
,
"multipart/form-data"
);
}
}
if
(
this
.
element
.
classList
.
contains
(
"dropzone"
)
&&
!
this
.
element
.
querySelector
(
".dz-message"
))
{
if
(
this
.
element
.
classList
.
contains
(
"dropzone"
)
&&
!
this
.
element
.
querySelector
(
".dz-message"
))
{
this
.
element
.
appendChild
(
Dropzone
.
createElement
(
"<div class=
\"
dz-default dz-message
\"
><span>"
+
this
.
options
.
dictDefaultMessage
+
"</span></div>"
));
this
.
element
.
appendChild
(
Dropzone
.
createElement
(
"<div class=
\"
dz-default dz-message
\"
style=
\"
z-index:1;
\"
><span>"
+
this
.
options
.
dictDefaultMessage
+
"</span></div>"
));
}
}
if
(
this
.
clickableElements
.
length
)
{
if
(
this
.
clickableElements
.
length
)
{
setupHiddenFileInput
=
(
function
(
_this
)
{
setupHiddenFileInput
=
(
function
(
_this
)
{
...
...
This diff is collapsed.
Click to expand it.
templates/upload.html
View file @
12a0a35a
...
@@ -2,7 +2,47 @@
...
@@ -2,7 +2,47 @@
{% load mytags %}
{% load mytags %}
{% block content %}
{% block content %}
{% include 'nav_cat_bar.html' %}
{% include 'nav_cat_bar.html' %}
<style>
table
{
display
:
table
;
border-collapse
:
separate
;
border-spacing
:
2px
;
border-color
:
grey
;
}
tbody
{
display
:
table-row-group
;
vertical-align
:
middle
;
border-color
:
inherit
;
}
.table.border
{
border
:
1px
solid
#999
;
}
.table.hovered
tbody
tr
:hover
{
background-color
:
rgba
(
28
,
183
,
236
,
.1
)
}
tr
{
display
:
table-row
;
vertical-align
:
inherit
;
border-color
:
inherit
;
}
td
,
th
{
display
:
table-cell
;
vertical-align
:
inherit
;
}
#hosts_list
{
background-color
:
white
;
background-image
:
none
;
border-radius
:
1px
;
color
:
inherit
;
display
:
block
;
right
:
23px
;
left
:
23px
;
}
</style>
<div
class=
"wrapper wrapper-content animated fadeIn"
>
<div
class=
"wrapper wrapper-content animated fadeIn"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"col-lg-12"
>
...
@@ -28,13 +68,34 @@
...
@@ -28,13 +68,34 @@
</div>
</div>
</div>
</div>
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
<div
class=
""
>
<div>
<form
id=
"my-awesome-dropzone"
class=
"dropzone"
action=
"#"
>
<form
id=
"my-awesome-dropzone"
class=
"dropzone"
action=
"#"
>
<div
class=
"dropzone-previews"
>
<div
class=
"dropzone-previews"
>
<input
id=
"hosts"
name=
"hosts"
type=
"text"
class=
"form-control"
required=
"不能为空"
placeholder=
"输入主机地址,逗号隔开,确保你有输入主机地址的权限"
size=
"80%"
>
<input
id=
"hosts"
name=
"hosts"
type=
"text"
class=
"form-control"
required=
"不能为空"
placeholder=
"输入主机地址,逗号隔开,确保你有输入主机地址的权限"
size=
"80%"
>
{#
<div
id=
"hosts_list"
style=
"position:absolute;display: none;z-index:999;"
>
#}
{# TODO: by liuzheng#}
{#
<table
class=
"table hovered border "
>
#}
{#
<tbody
style=
"background-color: white"
>
#}
{#
<tr>
#}
{#
<td
tabindex=
"2"
><a>
aaa
</a></td>
#}
{#
</tr>
#}
{#
<tr>
#}
{#
<td
tabindex=
"2"
><a>
aaa
</a></td>
#}
{#
</tr>
#}
{#
<tr>
#}
{#
<td
tabindex=
"2"
><a>
aaa
</a></td>
#}
{#
</tr>
#}
{#
<tr>
#}
{#
<td
tabindex=
"2"
><a>
aaa
</a></td>
#}
{#
</tr>
#}
{##}
{#
</tbody>
#}
{#
</table>
#}
{#
</div>
#}
</div>
</div>
<button
type=
"submit"
class=
"btn btn-primary pull-right"
>
全部上传
</button>
<button
type=
"submit"
class=
"btn btn-primary pull-right"
>
全部上传
</button>
<div></div>
</form>
</form>
</div>
</div>
<div>
<div>
...
@@ -78,8 +139,14 @@
...
@@ -78,8 +139,14 @@
}
}
});
});
{
#
$
(
"#hosts"
)[
0
].
onfocus
=
function
()
{
#
}
{
#
TODO
:
by
liuzheng
#
}
{
#
$
(
"#hosts_list"
).
show
()
#
}
{
#
};
#
}
{
#
$
(
"#hosts"
)[
0
].
focusout
=
function
()
{
#
}
{
#
$
(
"#hosts_list"
).
hide
()
#
}
{
#
};
#
}
$
(
'#my-awesome-dropzone'
).
validator
({
$
(
'#my-awesome-dropzone'
).
validator
({
timely
:
2
,
timely
:
2
,
theme
:
"yellow_right_effect"
,
theme
:
"yellow_right_effect"
,
...
...
This diff is collapsed.
Click to expand it.
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