1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

add action definition for destroy operation

This commit is contained in:
catborise 2020-07-20 12:27:36 +03:00
parent 2d6aaaf707
commit 400dd6c86e

View file

@ -12,6 +12,7 @@
<!-- Tab panes --> <!-- Tab panes -->
<div class="tab-content"> <div class="tab-content">
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="destroy"> <div role="tabpanel" class="tab-pane tab-pane-bordered active" id="destroy">
<p>{% trans 'This action starts remove instance process' %}</p>
{% if request.user.is_superuser or userinstance.is_delete %} {% if request.user.is_superuser or userinstance.is_delete %}
{% if instance.status == 3 %} {% if instance.status == 3 %}
<a class="btn btn-lg btn-success disabled float-right">{% trans "Destroy" %}</a> <a class="btn btn-lg btn-success disabled float-right">{% trans "Destroy" %}</a>