Merge tag '0.10.2'
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / cluster / delete.html
blob5412952cc68db9ec4184c484aacae3cd93bad157
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="{{STATIC_URL}}/css/delete.css"/>
8 <script type="text/javascript" src="{{STATIC_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 %}