1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-24 22:25:19 +00:00

do not show warning message when instance is shutdown

This commit is contained in:
catborise 2024-02-28 08:13:08 +03:00
parent 241f7462f7
commit a048adef8e

View file

@ -660,7 +660,9 @@
<div class="clearfix"></div>
</div>
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="xmledit">
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
{% if instance.status != 5 %}
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
{% endif %}
<form action="{% url 'instances:change_xml' instance.id %}" method="post" role="form" aria-label="Edit instance XML form">
{% csrf_token %}
<div class="col-sm-12" id="xmlheight">