Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6eef002e
authored
Mar 09, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix renew button effect
parent
7e4f4b67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
circle/dashboard/templates/dashboard/vm-detail/home.html
+3
-2
circle/dashboard/views/vm.py
+1
-1
No files found.
circle/dashboard/templates/dashboard/vm-detail/home.html
View file @
6eef002e
...
@@ -58,10 +58,11 @@
...
@@ -58,10 +58,11 @@
{% if instance.is_expiring %}
<i
class=
"fa fa-warning-sign text-danger"
></i>
{% endif %}
{% if instance.is_expiring %}
<i
class=
"fa fa-warning-sign text-danger"
></i>
{% endif %}
<span
id=
"vm-details-renew-op"
>
<span
id=
"vm-details-renew-op"
>
{% with op=op.renew %}{% if op %}
{% with op=op.renew %}{% if op %}
<a
href=
"{{op.get_url}}"
class=
"btn btn-
success
btn-xs
<a
href=
"{{op.get_url}}"
class=
"btn btn-
{{op.effect}}
btn-xs
operation operation-{{op.op}}"
>
operation operation-{{op.op}}"
>
<i
class=
"fa fa-{{op.icon}}"
></i>
<i
class=
"fa fa-{{op.icon}}"
></i>
{{op.name}}
</a>
{{op.name}}
</a>
{% endif %}{% endwith %}
{% endif %}{% endwith %}
</span>
</span>
</h4>
</h4>
...
...
circle/dashboard/views/vm.py
View file @
6eef002e
...
@@ -652,7 +652,7 @@ class VmRenewView(FormOperationMixin, TokenOperationView, VmOperationView):
...
@@ -652,7 +652,7 @@ class VmRenewView(FormOperationMixin, TokenOperationView, VmOperationView):
op
=
'renew'
op
=
'renew'
icon
=
'calendar'
icon
=
'calendar'
effect
=
'
info
'
effect
=
'
success
'
show_in_toolbar
=
False
show_in_toolbar
=
False
form_class
=
VmRenewForm
form_class
=
VmRenewForm
wait_for_result
=
0.5
wait_for_result
=
0.5
...
...
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