mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
Add explanation for boot menu changes. Minor cosmetic fixes
This commit is contained in:
parent
b757c62d4f
commit
8d2b3e3024
2 changed files with 8 additions and 1 deletions
|
@ -616,7 +616,9 @@
|
||||||
<input type="submit" class="btn btn-danger" name="unset_bootmenu" title="Hide boot menu" value="{% trans "Disable" %}">
|
<input type="submit" class="btn btn-danger" name="unset_bootmenu" title="Hide boot menu" value="{% trans "Disable" %}">
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{% trans "**** Please shutdown instance to modify boot menu ****" %}
|
{% ifequal bootmenu 0 %}
|
||||||
|
<p>{% trans "**** Please shutdown instance to modify boot menu ****" %}
|
||||||
|
{% endifequal %}
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -622,6 +622,11 @@ def instance(request, compute_id, vname):
|
||||||
order_list[idx] = {"type": type, "dev": dev}
|
order_list[idx] = {"type": type, "dev": dev}
|
||||||
conn.set_bootorder(order_list)
|
conn.set_bootorder(order_list)
|
||||||
msg = _("Set boot order")
|
msg = _("Set boot order")
|
||||||
|
|
||||||
|
if not conn.get_status() == 5:
|
||||||
|
messages.success(request, _("Boot menu changes applied. But it will be activated after shutdown"))
|
||||||
|
else:
|
||||||
|
messages.success(request, _("Boot order changed successfully."))
|
||||||
addlogmsg(request.user.username, instance.name, msg)
|
addlogmsg(request.user.username, instance.name, msg)
|
||||||
return HttpResponseRedirect(request.get_full_path() + '#boot_opt')
|
return HttpResponseRedirect(request.get_full_path() + '#boot_opt')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue