blob: 85a62b64dec51e7928a33fdef1fab0cc5a33dd6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{% extends 'nova/base.html' %}
{%load i18n%}
{% block sidebar %}
{% with current_sidebar="instances" %}
{{block.super}}
{% endwith %}
{% endblock %}
{% block page_header %}
{# to make searchable false, just remove it from the include statement #}
{% include "horizon/common/_page_header.html" with title=_("Update Instance") %}
{% endblock page_header %}
{% block dash_main %}
<div class="dash_block">
<div class="left">
{% include 'nova/instances/_form.html' with form=form %}
<h3><a href="{% url horizon:nova:instances:index %}"><< {% trans "Return to Instances List"%}</a></h3>
</div>
<div class="right">
<h3>{% trans "Description:"%}</h3>
<p>{% trans "Update the name and description of your instance"%}</p>
</div>
<div class="clear"></div>
</div>
{% endblock %}
{% block footer_js %}
<script type="text/javascript" charset="utf-8">
$(function(){
$("#spinner").hide()
function loadInstances(){
$('#spinner').show();
$('#instances').load('{% url horizon:nova:instances:refresh %}', function(){
$("#spinner").hide()
});
}
setInterval(function(){
loadInstances();
}, 15000);
$("a.refresh").click(function(e){
e.preventDefault()
loadInstances();
})
})
</script>
{% endblock footer_js %}
|