Skip to content

Commit

Permalink
do not show warning message when instance is shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
catborise committed Feb 28, 2024
1 parent 241f746 commit a048ade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion instances/templates/instances/settings_tab.html
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,9 @@ <h5 class="modal-title">{% trans "Edit Instance Network" %}</h5>
<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">
Expand Down

0 comments on commit a048ade

Please sign in to comment.