1 {% extends
"menu_base.html" %}
4 {% block title %}{% trans
"Rename" %} Virtual Machine{% endblock %}
7 <link rel=
"stylesheet" type=
"text/css"
8 href=
"{{STATIC_URL}}/css/virtual_machine_create.css"/>
9 <link rel=
"stylesheet" type=
"text/css"
10 href=
"{{STATIC_URL}}/css/help_tips.css"/>
11 <script src=
"{{STATIC_URL}}/js/helpTips.js"></script>
12 <script type=
"text/javascript">initHelpTips('#virtualmachineform');</script>
13 <script type=
"text/javascript">
14 // Make sure that if IP Check is selected, so is DNS Name Check
15 $(document
).ready(function() {
16 var name_check
= $("#id_name_check");
17 var ip_check
= $("#id_ip_check");
18 var old_ip_check
= ip_check
.is(":checked");
19 name_check
.live("click", function() {
20 if( !name_check
.is(":checked") ) {
21 // Save current value as old value
22 old_ip_check
= ip_check
.is(":checked");
24 ip_check
.removeAttr('checked');
26 //ip_check.attr('disabled', 'disabled');
29 //ip_check.removeAttr('disabled');
32 ip_check
.attr('checked', 'checked');
41 <h1 class=
"breadcrumb">
42 {% if cluster_admin %}
43 <a href=
"{% url cluster-detail cluster.slug %}#virtual_machines">{{cluster.hostname|abbreviate_fqdn}}
</a>
45 <span>{{cluster.hostname|abbreviate_fqdn}}
</span>
47 :
<a href=
"{% url instance-detail cluster.slug vm.hostname %}">{{ vm.hostname }}
</a>
48 : {% trans
"Rename" %}
51 <div id=
"virtualmachineform">
52 <form method=
"post">{% csrf_token %}
53 {% vmfield form.hostname %}
54 {% vmfield form.ip_check %}
55 {% vmfield form.name_check %}
56 <input class=
"submit" type=
"submit" value=
"Rename">
65 <div id=
"help-contents">
66 {% include
"ganeti/helptips/vm_rename.html" %}