Merge tag '0.10.2'
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / virtual_machine / create_status.html
blob6fdd180cc10ec8677dbe11f41e30a8b59352480c
1 {% extends "menu_base.html" %}
2 {% load webmgr_tags %}
3 {% load i18n %}
4 {% block title %} Virtual Machine {{ instance.hostname }}{% endblock %}
6 {% block head %}
8 <script type="text/javascript">
9 var job_poller;
11 $(document).ready(function() {
12 job_poller = new JobPoller();
13 var job_status_url = "{% url instance-job-status instance.id %}";
14 var cluster_detail_url = "{% url cluster-detail cluster.slug %}";
15 job_poller.init(job_status_url, cluster_detail_url, job_complete, job_error);
16 job_poller.get_jobs();
17 });
19 function job_complete() {
20 window.location.reload();
23 function job_error() {
24 $("#vm_edit").show();
26 </script>
27 {% endblock %}
29 {% block content %}
30 <h1 class="breadcrumb">
31 {% if cluster_admin %}
32 <a href="{% url cluster-detail cluster.slug %}#virtual_machines">{{cluster.hostname|abbreviate_fqdn}}</a>
33 {% else %}
34 <span>{{cluster.hostname|abbreviate_fqdn}}</span>
35 {% endif %}
36 : <span>{{ instance.hostname }}</span>
37 : deploying
38 </h1>
40 <script type="text/javascript" src="{{STATIC_URL}}/js/job_status.js"></script>
42 <ul id="messages"></ul>
44 <div id="vm_edit" style="display:none;">
45 <ul>
46 <li></li><a class="button edit" href="{% url instance-create-recover cluster.slug instance.hostname %}">{% trans "Edit" %}</a></li>
47 <li></li><a class="button delete" href="{% url instance-delete cluster.slug instance.hostname %}">{% trans "Delete" %}</a></li>
48 </ul>
49 </div>
53 {% endblock %}