Skip to content

Commit a048ade

Browse files
committed
do not show warning message when instance is shutdown
1 parent 241f746 commit a048ade

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

instances/templates/instances/settings_tab.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,9 @@ <h5 class="modal-title">{% trans "Edit Instance Network" %}</h5>
660660
<div class="clearfix"></div>
661661
</div>
662662
<div role="tabpanel" class="tab-pane tab-pane-bordered" id="xmledit">
663-
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
663+
{% if instance.status != 5 %}
664+
<p>{% trans "If you need to edit XML please Power Off the instance" %}</p>
665+
{% endif %}
664666
<form action="{% url 'instances:change_xml' instance.id %}" method="post" role="form" aria-label="Edit instance XML form">
665667
{% csrf_token %}
666668
<div class="col-sm-12" id="xmlheight">

0 commit comments

Comments
 (0)