50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
{% extends 'django_openstack/dash/base.html' %}
|
|
|
|
{% 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 "django_openstack/common/_page_header.html" with title="Update Instance" %}
|
|
{% endblock page_header %}
|
|
|
|
{% block dash_main %}
|
|
<div class="dash_block">
|
|
<div class="left">
|
|
{% include 'django_openstack/dash/instances/_form.html' with form=form %}
|
|
<h3><a href="{% url dash_instances request.user.tenant %}"><< Return to Instances List</a></h3>
|
|
</div>
|
|
|
|
<div class="right">
|
|
<h3>Description:</h3>
|
|
<p>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 dash_instances_refresh request.user.tenant %}', function(){
|
|
$("#spinner").hide()
|
|
});
|
|
}
|
|
setInterval(function(){
|
|
loadInstances();
|
|
}, 15000);
|
|
|
|
$("a.refresh").click(function(e){
|
|
e.preventDefault()
|
|
loadInstances();
|
|
})
|
|
})
|
|
</script>
|
|
{% endblock footer_js %}
|