Merge branch 'develop' into feature/search_autocomplete_haste
[ganeti_webmgr.git] / ganeti / templates / cluster / delete.html
blob1486b9289bf9d7d1f3fa584d7511663d9cec6dff
1 {% extends "menu_base.html" %}
2 {% load webmgr_tags %}
3 {% load i18n %}
4 {% block title %}Delete Cluster{% endblock %}
6 {% block head %}
7 <link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/css/delete.css"/>
8 <script type="text/javascript" src="{{MEDIA_URL}}/js/jquery.ajax.delete.js"></script>
9 <script type="text/javascript">
10 $(document).ready(function() {
11 $('#delete').click(function(){
12 href = "{% url cluster-delete vm.cluster.slug %}";
13 $.delete_(href, function(){
14 $("#confirm").hide();
15 $("#success").show();
16 });
17 });
18 });
19 </script>
20 {% endblock %}
22 {% block content %}
23 <div id="confirm">
24 <div class="message">
25 {% trans
26 "Are you sure you want to delete this cluster? This action
27 can not be undone. The cluster and all associated virtual machines will
28 be removed from the database.
30 The virtual machines on the cluster will remain unchanged." %}
31 <ul><li>{{cluster.hostname}}</li></ul>
32 </div>
33 <input id="delete" type="button" value='{% trans "Delete" %}' />
34 </div>
36 <div id="success">
37 {% trans "Deleted" %}.
38 </div>
39 {% endblock %}