Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1d7255f3
authored
Jun 05, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add connection details
parent
a9f165ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
8 deletions
+35
-8
circle/dashboard/static/dashboard/dashboard.css
+13
-4
circle/dashboard/static/dashboard/vm-details.js
+5
-0
circle/dashboard/templates/dashboard/vm-detail.html
+17
-4
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
1d7255f3
...
...
@@ -334,12 +334,14 @@ a.hover-black {
}
/* vm details connection */
.vm-details-
pw
dd
{
margin-left
:
155
px
;
.vm-details-
connection
dd
{
padding-top
:
8
px
;
}
.vm-details-pw
dt
{
width
:
140px
;
.vm-details-connection
dt
{
text-align
:
left
;
padding-top
:
8px
;
padding-left
:
15px
;
}
#vm-details-pw-confirm
{
...
...
@@ -347,6 +349,10 @@ a.hover-black {
display
:
none
;
}
#vm-details-pw-confirm
dt
{
text-align
:
right
;
}
.dashboard-vm-details-network-h3
{
margin-top
:
20px
;
}
...
...
@@ -663,3 +669,6 @@ textarea[name="list-new-namelist"] {
display
:
none
;
}
#vm-details-connection-string-copy
{
cursor
:
pointer
;
}
circle/dashboard/static/dashboard/vm-details.js
View file @
1d7255f3
...
...
@@ -289,6 +289,11 @@ $(function() {
$
(
this
).
parent
(
"div"
).
slideUp
();
});
// select connection string
$
(
"#vm-details-connection-string-copy"
).
click
(
function
()
{
$
(
"#vm-details-connection-string"
).
focus
();
});
});
...
...
circle/dashboard/templates/dashboard/vm-detail.html
View file @
1d7255f3
...
...
@@ -67,10 +67,15 @@
<span>
{{ instance.get_status_display|upper }}
</span>
</span>
</div>
<h3>
{% trans "Connection" %}
</h3>
<input
type=
"text"
value=
"{{ instance.get_connect_command }}"
class=
"form-control"
readonly
/>
<dl
class=
"dl-horizontal vm-details-pw"
>
<dt>
{% trans "Password" %}:
</dt>
<h3>
{% trans "Connection details" %}
</h3>
<dl
class=
"dl-horizontal vm-details-connection"
>
<dt>
{% trans "Protocol" %}
</dt>
<dd>
{{ instance.access_method|upper }}
</dd>
<dt>
{% trans "Host" %}
</dt>
<dd>
{{ instance.get_connect_host }}:
<strong>
{{ instance.get_connect_port }}
</strong></dd>
<dt>
{% trans "Username" %}
</dt>
<dd>
cloud
</dd>
<dt>
{% trans "Password" %}
</dt>
<dd>
<div
class=
"input-group"
>
<input
type=
"text"
id=
"vm-details-pw-input"
class=
"form-control input-sm input-tags"
value=
"{{ instance.pw }}"
/>
...
...
@@ -92,6 +97,14 @@
</dd>
</div>
</dl>
<div
class=
"input-group"
>
<span
class=
"input-group-addon input-tags"
>
{% trans "Command" %}
</span>
<input
type=
"text"
value=
"{{ instance.get_connect_command }}"
id=
"vm-details-connection-string"
class=
"form-control input-tags"
/>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-connection-string-copy"
>
<i
class=
"icon-copy"
title=
"{% trans "
Select
all
"
%}"
></i>
</span>
</div>
</div>
<div
class=
"col-md-8"
id=
"vm-detail-pane"
>
<div
class=
"panel panel-default"
id=
"vm-detail-panel"
>
...
...
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