Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
e02cbfce
authored
Feb 08, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: fix new-template-flow.html (fileformat/syntax)
parent
c3ccc727
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
158 additions
and
158 deletions
+158
-158
one/templates/new-template-flow.html
+158
-158
No files found.
one/templates/new-template-flow.html
View file @
e02cbfce
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
<form
action=
"/"
method=
"post"
id=
"template-wizard"
>
<div
id=
"new-template-step-1"
class=
"wizard"
>
<div
class=
"progress"
>
<div
class=
"bar-container"
>
<div
class=
"bar"
style=
"width: 33%"
></div>
</div>
<h3>
{% blocktrans with step=1 all=3 %}{{step}}/{{all}}{% endblocktrans %}
</h3>
</div>
<h2>
{% blocktrans with step=1 %}Step {{step}}{% endblocktrans %}
</h2>
<p>
Leírás, mit is kéne itt ezen az ablakon csinálni, és miért jó, ha azt csinálja, amit.
</p>
<ul>
<li>
<label
for=
"new-template-name"
>
{% trans "Name" %}
</label>
<input
type=
"text"
placeholder=
"{% trans "
Short
name
of
template
"
%}"
name=
"name"
id=
"new-template-name"
/>
<div
class=
"clear"
></div>
</li>
<li>
<label
for=
"new-template-type"
>
{% trans "Type" %}
</label>
<ul
class=
"radio"
>
<li>
<input
type=
"radio"
name=
"type"
value=
"labor"
id=
"new-template-type-labor"
/>
<label
for=
"new-template-type-labor"
>
{% trans "Lab" %}
</label>
</li>
<li>
<input
type=
"radio"
name=
"type"
value=
"project"
id=
"new-template-type-project"
/>
<label
for=
"new-template-type-project"
>
{% trans "Project" %}
</label>
</li>
</ul>
<div
class=
"clear"
></div>
</li>
<li>
<label
for=
"new-template-size"
>
{% trans "Size" %}
</label>
<ul
class=
"radio"
>
<li>
<input
type=
"radio"
name=
"size"
value=
"small"
id=
"new-template-size-small"
/>
<label
for=
"new-template-size-small"
>
Kicsi
</label>
</li>
<li>
<input
type=
"radio"
name=
"size"
value=
"medium"
id=
"new-template-size-medium"
/>
<label
for=
"new-template-size-medium"
>
Közepes
</label>
</li>
<li>
<input
type=
"radio"
name=
"size"
value=
"large"
id=
"new-template-size-large"
/>
<label
for=
"new-template-size-large"
>
Nagy
</label>
</li>
</ul>
<div
class=
"clear"
></div>
</li>
<li
style=
"border: none"
>
<label
for=
"new-template-description"
>
{% trans "Description" %}
</label>
<textarea
name=
"description"
id=
"new-template-description"
placeholder=
"{% trans "
Comments
about
the
template
"
%}"
></textarea>
<div
class=
"clear"
></div>
</li>
</ul>
<nav>
<a
href=
"#"
class=
"prev"
>
{% trans "
«
Cancel" %}
</a>
<a
href=
"#"
class=
"next"
>
{% trans "Next
»
%}
</a>
<div
class=
"clear"
></div>
</nav>
<script
type=
"text/javascript"
>
$
(
function
(){
$
(
'#new-template-step-1 nav .next'
).
click
(
function
(){
$
(
'#new-template-step-1'
).
hide
();
$
(
'#new-template-step-2'
).
show
();
})
$
(
'#new-template-step-1 nav .prev'
).
click
(
function
(){
$
(
'#modal'
).
hide
();
})
})
</script>
</div>
<div
id=
"new-template-step-2"
class=
"wizard"
style=
"display: none"
>
<div
class=
"progress"
>
<div
class=
"bar-container"
>
<div
class=
"bar"
style=
"width: 66%"
></div>
</div>
<h3>
{% blocktrans with step=2 all=3 %}{{step}}/{{all}}{% endblocktrans %}
</h3>
</div>
<h2>
{% blocktrans with step=2 %}Step {{step}}{% endblocktrans %}
</h2>
<p>
Leírás, mit is kéne itt ezen az ablakon csinálni, és miért jó, ha azt csinálja, amit.
</p>
<div
class=
"container"
>
<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>
{% trans "Details" %}
</h3>
<ul>
<li
class=
"name"
>
{% trans "System" %}:
<span
class=
"value"
>
{{m.disk.name}}
</span></li>
<li
class=
"type"
>
{% trans "Size" %}:
<span
class=
"value"
>
{{m.instance_type.name}}
</span></li>
<li
class=
"memory"
>
{% trans "Memory" %}:
<span
class=
"value"
>
{{m.instance_type.RAM}} MiB
</span></li>
<li
class=
"cpu"
>
{% trans "CPU cores" %}:
<span
class=
"value"
>
{{m.instance_type.CPU}}
</span></li>
</ul>
</div>
</form>
</li>
{% endfor %}
</ul>
</div>
<nav>
<a
href=
"#"
class=
"prev"
>
{% trans "
«
Cancel" %}
</a>
<a
href=
"#"
class=
"next"
>
{% trans "Next
»
" %}
</a>
<div
class=
"clear"
></div>
</nav>
<script
type=
"text/javascript"
>
$
(
function
(){
console
.
log
(
'foo'
);
$
(
'#modal .wm .summary'
).
each
(
function
(){
$
(
this
).
next
(
'.details'
).
show
();
console
.
log
(
$
(
this
).
next
(
'.details'
).
css
(
'display'
),
$
(
this
).
next
(
'.details'
).
css
(
'height'
));
//this.originalHeight=parseInt($(this).next('.details').css('height'));
})
$
(
'#modal .wm .summary'
).
click
(
function
(){
if
(
$
(
this
).
next
(
'.details'
).
is
(
':hidden'
)){
$
(
this
).
next
(
'.details'
)
.
slideDown
(
700
);
$
(
this
).
parent
(
'.wm'
).
addClass
(
'opened'
);
}
else
{
var
that
=
this
;
$
(
this
).
next
(
'.details'
)
.
removeClass
(
'opened'
)
.
slideUp
(
700
);
}
});
$
(
'#new-template-step-2 nav .prev'
).
click
(
function
(){
$
(
'#new-template-step-2'
).
hide
();
$
(
'#new-template-step-1'
).
show
();
})
$
(
'#new-template-step-2 nav .next'
).
click
(
function
(){
$
(
'#new-template-step-2'
).
hide
();
$
(
'#new-template-step-3'
).
show
();
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/ajax/templateWizard'
,
'data'
:
$
(
'#template-wizard'
).
serialize
()
})
.
done
(
function
(){
console
.
log
(
'ok'
)});
})
})
</script>
</div>
<div
id=
"new-template-step-3"
class=
"wizard"
style=
"display: none"
>
</div>
</form>
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
<form
action=
"/"
method=
"post"
id=
"template-wizard"
>
<div
id=
"new-template-step-1"
class=
"wizard"
>
<div
class=
"progress"
>
<div
class=
"bar-container"
>
<div
class=
"bar"
style=
"width: 33%"
></div>
</div>
<h3>
{% blocktrans with step=1 all=3 %}{{step}}/{{all}}{% endblocktrans %}
</h3>
</div>
<h2>
{% blocktrans with step=1 %}Step {{step}}{% endblocktrans %}
</h2>
<p>
Leírás, mit is kéne itt ezen az ablakon csinálni, és miért jó, ha azt csinálja, amit.
</p>
<ul>
<li>
<label
for=
"new-template-name"
>
{% trans "Name" %}
</label>
<input
type=
"text"
placeholder=
"{% trans "
Short
name
of
template
"
%}"
name=
"name"
id=
"new-template-name"
/>
<div
class=
"clear"
></div>
</li>
<li>
<label
for=
"new-template-type"
>
{% trans "Type" %}
</label>
<ul
class=
"radio"
>
<li>
<input
type=
"radio"
name=
"type"
value=
"labor"
id=
"new-template-type-labor"
/>
<label
for=
"new-template-type-labor"
>
{% trans "Lab" %}
</label>
</li>
<li>
<input
type=
"radio"
name=
"type"
value=
"project"
id=
"new-template-type-project"
/>
<label
for=
"new-template-type-project"
>
{% trans "Project" %}
</label>
</li>
</ul>
<div
class=
"clear"
></div>
</li>
<li>
<label
for=
"new-template-size"
>
{% trans "Size" %}
</label>
<ul
class=
"radio"
>
<li>
<input
type=
"radio"
name=
"size"
value=
"small"
id=
"new-template-size-small"
/>
<label
for=
"new-template-size-small"
>
Kicsi
</label>
</li>
<li>
<input
type=
"radio"
name=
"size"
value=
"medium"
id=
"new-template-size-medium"
/>
<label
for=
"new-template-size-medium"
>
Közepes
</label>
</li>
<li>
<input
type=
"radio"
name=
"size"
value=
"large"
id=
"new-template-size-large"
/>
<label
for=
"new-template-size-large"
>
Nagy
</label>
</li>
</ul>
<div
class=
"clear"
></div>
</li>
<li
style=
"border: none"
>
<label
for=
"new-template-description"
>
{% trans "Description" %}
</label>
<textarea
name=
"description"
id=
"new-template-description"
placeholder=
"{% trans "
Comments
about
the
template
"
%}"
></textarea>
<div
class=
"clear"
></div>
</li>
</ul>
<nav>
<a
href=
"#"
class=
"prev"
>
{% trans "
«
Cancel" %}
</a>
<a
href=
"#"
class=
"next"
>
{% trans "Next
»
" %}
</a>
<div
class=
"clear"
></div>
</nav>
<script
type=
"text/javascript"
>
$
(
function
(){
$
(
'#new-template-step-1 nav .next'
).
click
(
function
(){
$
(
'#new-template-step-1'
).
hide
();
$
(
'#new-template-step-2'
).
show
();
})
$
(
'#new-template-step-1 nav .prev'
).
click
(
function
(){
$
(
'#modal'
).
hide
();
})
})
</script>
</div>
<div
id=
"new-template-step-2"
class=
"wizard"
style=
"display: none"
>
<div
class=
"progress"
>
<div
class=
"bar-container"
>
<div
class=
"bar"
style=
"width: 66%"
></div>
</div>
<h3>
{% blocktrans with step=2 all=3 %}{{step}}/{{all}}{% endblocktrans %}
</h3>
</div>
<h2>
{% blocktrans with step=2 %}Step {{step}}{% endblocktrans %}
</h2>
<p>
Leírás, mit is kéne itt ezen az ablakon csinálni, és miért jó, ha azt csinálja, amit.
</p>
<div
class=
"container"
>
<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>
{% trans "Details" %}
</h3>
<ul>
<li
class=
"name"
>
{% trans "System" %}:
<span
class=
"value"
>
{{m.disk.name}}
</span></li>
<li
class=
"type"
>
{% trans "Size" %}:
<span
class=
"value"
>
{{m.instance_type.name}}
</span></li>
<li
class=
"memory"
>
{% trans "Memory" %}:
<span
class=
"value"
>
{{m.instance_type.RAM}} MiB
</span></li>
<li
class=
"cpu"
>
{% trans "CPU cores" %}:
<span
class=
"value"
>
{{m.instance_type.CPU}}
</span></li>
</ul>
</div>
</form>
</li>
{% endfor %}
</ul>
</div>
<nav>
<a
href=
"#"
class=
"prev"
>
{% trans "
«
Cancel" %}
</a>
<a
href=
"#"
class=
"next"
>
{% trans "Next
»
" %}
</a>
<div
class=
"clear"
></div>
</nav>
<script
type=
"text/javascript"
>
$
(
function
(){
console
.
log
(
'foo'
);
$
(
'#modal .wm .summary'
).
each
(
function
(){
$
(
this
).
next
(
'.details'
).
show
();
console
.
log
(
$
(
this
).
next
(
'.details'
).
css
(
'display'
),
$
(
this
).
next
(
'.details'
).
css
(
'height'
));
//this.originalHeight=parseInt($(this).next('.details').css('height'));
})
$
(
'#modal .wm .summary'
).
click
(
function
(){
if
(
$
(
this
).
next
(
'.details'
).
is
(
':hidden'
)){
$
(
this
).
next
(
'.details'
)
.
slideDown
(
700
);
$
(
this
).
parent
(
'.wm'
).
addClass
(
'opened'
);
}
else
{
var
that
=
this
;
$
(
this
).
next
(
'.details'
)
.
removeClass
(
'opened'
)
.
slideUp
(
700
);
}
});
$
(
'#new-template-step-2 nav .prev'
).
click
(
function
(){
$
(
'#new-template-step-2'
).
hide
();
$
(
'#new-template-step-1'
).
show
();
})
$
(
'#new-template-step-2 nav .next'
).
click
(
function
(){
$
(
'#new-template-step-2'
).
hide
();
$
(
'#new-template-step-3'
).
show
();
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/ajax/templateWizard'
,
'data'
:
$
(
'#template-wizard'
).
serialize
()
})
.
done
(
function
(){
console
.
log
(
'ok'
)});
})
})
</script>
</div>
<div
id=
"new-template-step-3"
class=
"wizard"
style=
"display: none"
>
</div>
</form>
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