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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
8d2093a5
authored
Jan 29, 2013
by
Danyi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new-template workflow updated
parent
1f024549
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
28 deletions
+32
-28
one/static/style.css
+27
-0
one/templates/base.html
+4
-1
one/templates/home.html
+1
-27
No files found.
one/static/style.css
View file @
8d2093a5
...
@@ -77,6 +77,33 @@ a:link,a:visited{
...
@@ -77,6 +77,33 @@ a:link,a:visited{
#new-template-button
.name
{
#new-template-button
.name
{
background-image
:
url(icons/document--plus.png)
!important
background-image
:
url(icons/document--plus.png)
!important
}
}
#modal-container
ul
{
list-style
:
none
;
}
#modal-container
.wizard
li
{
border-bottom
:
1px
dotted
#999
;
}
#modal-container
.wizard
label
{
float
:
left
;
padding
:
5px
;
margin
:
10px
5px
;
}
.wizard
.progress
.bar
{
background-color
:
green
;
height
:
15px
;
position
:
absolute
;
z-index
:
-1
;
}
.wizard
.progress
{
text-align
:
center
;
}
#modal-container
.wizard
input
,
#modal-container
.wizard
select
{
display
:
block
;
float
:
right
;
padding
:
5px
;
margin
:
10px
5px
;
width
:
200px
;
}
.wm
.summary
{
.wm
.summary
{
padding
:
15px
5px
;
padding
:
15px
5px
;
border-top
:
1px
solid
#888
;
border-top
:
1px
solid
#888
;
...
...
one/templates/base.html
View file @
8d2093a5
...
@@ -22,7 +22,6 @@ $(function(){
...
@@ -22,7 +22,6 @@ $(function(){
.
css
(
'padding'
,
'0px 5px'
)
.
css
(
'padding'
,
'0px 5px'
)
.
animate
({
height
:
this
.
originalHeight
,
paddingTop
:
15
,
paddingBottom
:
15
},
700
);
.
animate
({
height
:
this
.
originalHeight
,
paddingTop
:
15
,
paddingBottom
:
15
},
700
);
$
(
this
).
parent
(
'.wm'
).
addClass
(
'opened'
);
$
(
this
).
parent
(
'.wm'
).
addClass
(
'opened'
);
}
else
{
}
else
{
var
that
=
this
;
var
that
=
this
;
$
(
this
).
next
(
'.details'
)
$
(
this
).
next
(
'.details'
)
...
@@ -52,6 +51,10 @@ $(function(){
...
@@ -52,6 +51,10 @@ $(function(){
})
})
$
(
'#modal-container .wm .summary'
).
click
(
toggleDetails
);
$
(
'#modal-container .wm .summary'
).
click
(
toggleDetails
);
});
});
$
(
'#new-template-button'
).
click
(
function
(){
$
(
'#modal'
).
show
();
$
(
'#modal-container'
).
html
(
$
(
'#new-template'
).
html
());
});
$
(
'#shadow'
).
click
(
function
(){
$
(
'#shadow'
).
click
(
function
(){
$
(
'#modal'
).
hide
();
$
(
'#modal'
).
hide
();
})
})
...
...
one/templates/home.html
View file @
8d2093a5
...
@@ -98,33 +98,7 @@
...
@@ -98,33 +98,7 @@
</div>
</div>
</li>
</li>
<li
id=
"new-template"
style=
"display: none"
>
<li
id=
"new-template"
style=
"display: none"
>
<h2>
Rendelkezésre álló sablonok
</h2>
{% include "new-template-flow.html" %}
<ul
class=
"wm-list modal"
>
{% for m in templates %}
<li
class=
"wm"
>
<form
method=
"POST"
action=
"/vm/new/{{m.pk}}/"
>
{% csrf_token %}
<div
class=
"summary"
>
<div
class=
"name wm-on"
>
{{m.name}}
</div>
<div
class=
"status"
>
<input
type=
"submit"
value=
"Indítás"
/>
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<h3>
Részletek
</h3>
<ul>
<li
class=
"name"
>
Rendszer:
<span
class=
"value"
>
{{m.disk.name}}
</span></li>
<li
class=
"type"
>
Instance típus:
<span
class=
"value"
>
{{m.instance_type.name}}
</span></li>
<li
class=
"memory"
>
Memória:
<span
class=
"value"
>
{{m.instance_type.RAM}} MiB
</span></li>
<li
class=
"cpu"
>
CPU magok:
<span
class=
"value"
>
{{m.instance_type.CPU}}
</span></li>
</ul>
</div>
</form>
</li>
{% endfor %}
</ul>
</li>
</li>
</ul>
</ul>
</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