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
53edd6ca
authored
Feb 11, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: Fixed template add buttons
parent
3a59e5f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
one/static/base.less
+1
-1
one/templates/box-templatelist.html
+1
-1
one/templates/new-template-flow-1.html
+1
-1
one/templates/new-template-flow.html
+6
-2
No files found.
one/static/base.less
View file @
53edd6ca
...
...
@@ -181,7 +181,7 @@ input {
}
}
input[type=submit], input[type=button]{
input[type=submit], input[type=button]
, input[type=reset]
{
border: 1px solid #777;
cursor: pointer;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
...
...
one/templates/box-templatelist.html
View file @
53edd6ca
...
...
@@ -5,7 +5,7 @@
<ul
class=
"wm-list"
>
{% for t in mytemplates %}
<li
class=
"wm"
id=
"t{{t.id }}"
>
<div
class=
"summary"
>
<div
class=
"summary
{% if t.state == 'NEW' or t.state == 'SAVING'%}unfinished{% endif %}
"
>
<div
class=
"name"
>
{{t.name}}
</div>
<div
class=
"status"
>
{{t.state}}
</div>
<div
class=
"actions"
>
...
...
one/templates/new-template-flow-1.html
View file @
53edd6ca
...
...
@@ -26,7 +26,7 @@
</ul>
</div>
<nav>
<
a
href=
"#"
class=
"prev"
>
{% trans "
«
Cancel" %}
</a
>
<
input
type=
"reset"
class=
"prev"
value=
"{% trans "
Cancel
"
%}"
/
>
<input
type=
"submit"
class=
"next"
value=
"{% trans "
Next
&
raquo
;"
%}"
/>
<div
class=
"clear"
></div>
</nav>
...
...
one/templates/new-template-flow.html
View file @
53edd6ca
...
...
@@ -47,8 +47,9 @@
</li>
</ul>
<nav>
<a
href=
"#"
class=
"prev"
>
{% trans "
«
Cancel" %}
</a>
<input
type=
"submit"
value=
"{% trans "
Launch
"
%}"
/>
<!-- <a href="#" class="prev">{% trans "« Cancel" %}</a> -->
<input
type=
"reset"
class=
"prev"
value=
"{% trans "
Cancel
"
%}"
/>
<input
type=
"submit"
class=
"next"
value=
"{% trans "
Launch
master
instance
"
%}"
/>
<div
class=
"clear"
></div>
</nav>
<script
type=
"text/javascript"
>
...
...
@@ -61,6 +62,7 @@
$
(
"p.size-summary"
).
hide
();
$
(
"#new-template-size-summary-"
+
v
).
show
();
});
$
(
'#new-template-step-2 nav .next'
).
attr
(
"disabled"
,
"disabled"
);
$
(
"#new-template-name"
).
change
(
function
(
e
){
var
s
=
$
(
this
).
val
();
$
.
ajax
({
...
...
@@ -72,9 +74,11 @@
}
if
(
data
==
"True"
)
{
$
(
'#new-template-name'
).
removeClass
(
"error"
);
$
(
'#new-template-step-2 nav .next'
).
removeAttr
(
"disabled"
);
}
else
{
$
(
'#new-template-name'
).
addClass
(
"error"
);
$
(
'#new-template-step-2 nav .next'
).
attr
(
"disabled"
,
"disabled"
);
}
}
});
...
...
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