Fix error when sorting Job list by object.
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / virtual_machine / delete_status.html
blobade2a52ea8112c5718d1f2af76d526d17c1a9022
1 {% extends "menu_base.html" %}
2 {% load webmgr_tags %}
3 {% load i18n %}
4 {% block title %}Delete In Progress{% endblock %}
6 {% block head %}
7 <style>
8 #success {display:none;}
9 </style>
11 <script type="text/javascript">
12 var job_poller;
13 $(document).ready(function() {
14 job_poller = new JobPoller();
15 var job_status_url = "{% url instance-job-status instance.id %}";
16 var cluster_detail_url = "{% url cluster-detail cluster.slug %}";
17 job_poller.init(job_status_url, cluster_detail_url, job_complete);
18 job_poller.get_jobs();
19 });
21 function job_complete() {
22 $('#messages').hide();
23 $('#success').show();
25 </script>
26 {% endblock %}
28 {% block content %}
29 <h1 class="breadcrumb">
30 {% if cluster_admin %}
31 <a href="{% url cluster-detail cluster.slug %}#virtual_machines">{{cluster.hostname|abbreviate_fqdn}}</a>
32 {% else %}
33 <span>{{cluster.hostname|abbreviate_fqdn}}</span>
34 {% endif %}
35 : <span>{{ instance.hostname }}</span>
36 : {% trans "deleting" %}
37 </h1>
39 <script type="text/javascript" src="{{STATIC_URL}}/js/job_status.js"></script>
41 <ul id="messages"></ul>
43 <div id="success">{% trans "Deleted" %}.</div>
44 {% endblock %}