mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 20:14:15 +00:00
073b7b6717
* Bootstrap5 migration
27 lines
No EOL
1.2 KiB
HTML
27 lines
No EOL
1.2 KiB
HTML
{% load i18n %}
|
|
<div class="tab-pane" id="undefine" role="tabpanel">
|
|
<!-- Nav tabs -->
|
|
<ul class="nav nav-tabs" role="tablist" aria-label="Instance destroy menu">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="#destroy" aria-controls="destroy" role="tab" data-bs-toggle="tab">
|
|
{% trans "Destroy Instance" %}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<!-- Tab panes -->
|
|
<div class="tab-content">
|
|
<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 instance.status == 3 %}
|
|
<a class="btn btn-lg btn-success disabled float-end">{% trans "Destroy" %}</a>
|
|
{% else %}
|
|
<a href="{% url 'instances:destroy' instance.id %}" class="btn btn-lg btn-success float-end">{% trans "Destroy" %}</a>
|
|
{% endif %}
|
|
{% else %}
|
|
<button class="btn btn-lg btn-success disabled float-end" name="delete">{% trans "Destroy" %}</button>
|
|
{% endif %}
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
</div> |