Fix error when sorting Job list by object.
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / virtual_machine / reinstall.html
blob38f927206069e6f37a8c8ba53caafd90f136c6a9
1 {% extends "menu_base.html" %}
2 {% load webmgr_tags %}
3 {% load i18n %}
4 {% block title %}{% trans "Reinstall" %} Virtual Machine{% endblock %}
6 {% block head %}
7 <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/delete.css"/>
8 {% endblock %}
10 {% block content %}
11 <h1 class="breadcrumb">
12 {% if cluster_admin %}
13 <a href="{% url cluster-detail cluster.slug %}#virtual_machines">{{cluster.hostname|abbreviate_fqdn}}</a>
14 {% else %}
15 <span>{{cluster.hostname|abbreviate_fqdn}}</span>
16 {% endif %}
17 : <a href="{% url instance-detail cluster.slug vm.hostname %}">{{ vm.hostname }}</a>
18 : {% trans "Reinstall" %}
19 </h1>
21 <div id="confirm">
22 <div class="message">
23 Are you sure you want to reinstall this virtual machine? This action
24 can not be undone. The contents of the virtual machine will be lost.
25 <br />While the reinstall is in progress, the detail page will indicate that a "Instance Shutdown" job is running.
26 <br />Once the reinstall is complete, you can click "Start" to boot up the virtual machine.
27 <ul><li>{{vm.hostname}}</li></ul>
28 <br />Warning: This may not work if you choose an operating system other than
29 the one this virtual machine was initally installed with. If a
30 reinstallation is unsuccessful, reinstall with the virtual machine's
31 original operating system.
32 </div>
33 <form method="post">
34 {% csrf_token %}
35 <label for="os">{% trans "Operating System" %}</label>
36 <select name="os" id="os">
37 {% for osgroup in oschoices %}
38 <optgroup label="{{ osgroup.0 }}">
39 {% for oschoice in osgroup.1 %}
40 <option
41 {% if oschoice.0 == current_os %}selected="selected"{% endif %}
42 value="{{ oschoice.0 }}">{{ oschoice.1 }}</option>
43 {% endfor %}
44 </optgroup>
45 {% endfor %}
46 </select><br /><br />
48 <input id="reinstall" type="submit" value="{% trans "Reinstall" %}" />
49 </form>
50 </div>
52 {% endblock %}