Ticket #3957 (partial) - ganeti_webmgr uses ganeti python namespace:
[ganeti_webmgr.git] / ganeti_web / templates / virtual_machine / reinstall.html
blobd3bd0f5fa30dc353e52eb10517f71d003b50ed92
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="{{MEDIA_URL}}/css/delete.css"/>
8 {% endblock %}
10 {% block content %}
11 <h1>
12 {% if cluster_admin %}
13 <a class="breadcrumb" href="{% url cluster-detail cluster.slug %}#virtual_machines">{{cluster.hostname|abbreviate_fqdn}}</a>
14 {% else %}
15 <span class="breadcrumb">{{cluster.hostname|abbreviate_fqdn}}</span>
16 {% endif %}
17 : <a class="breadcrumb" 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 <label for="os">{% trans "Operating System" %}</label>
35 <select name="os" id="os">
36 {% for osgroup in oschoices %}
37 <optgroup label="{{ osgroup.0 }}">
38 {% for oschoice in osgroup.1 %}
39 {% if oschoice.0 == current_os %}
40 <option value="{{ oschoice.0 }}" selected="selected">
41 {{ oschoice.1 }}</option>
42 {% else %}
43 <option value="{{ oschoice.0 }}">{{ oschoice.1 }}</option>
44 {% endif %}
45 {% endfor %}
46 </optgroup>
47 {% endfor %}
48 </select><br /><br />
50 <input id="reinstall" type="submit" value="{% trans "Reinstall" %}" />
51 </form>
52 </div>
54 {% endblock %}