mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 20:26:48 +00:00
The top of a VM's page was one line of values between pipes, an icon for the guest agent and a hidden snapshot count, then a row of big action icons; the host links sat in a bar fixed to the bottom of the window, over the content. One card now holds it all (design chosen by the owner from four): - the name with the state badge, the title under it, and where the VM is: its host and the host's VM list for administrators, the VM list for owners; - OS details (with a connected guest agent) and Refresh; - the guest agent's state in words and the snapshot count; - CPU, memory, each disk with its device name and size, and the IPv4 addresses, labelled; - the page's sections as small labelled pills in the card's footer: one row from 992 px, wrapping below. The page has no other heading: base.html's heading area is a block it leaves out. Each section below it (Power, Access, Resize, Snapshot, Settings, Stats, Destroy) is a card of the same kind, so the page reads as one design (owner's choice of two): its sub-tabs as a small underlined nav in the card's header, its panes in the card's body without their own borders. Buttons are of normal size in the theme's primary colour, and those that cannot be undone (Power Cycle, Force Off, Destroy) in the danger colour. The Stats charts lose their coloured borders. instance_tabs.js finds the Settings tabs by their tablist role. The bottom bar and its setting (VIEW_INSTANCE_DETAIL_BOTTOM_BAR) are removed, and with it the CSS that kept the old Settings tabs on one line.
27 lines
No EOL
1.1 KiB
HTML
27 lines
No EOL
1.1 KiB
HTML
{% load i18n %}
|
|
<div class="tab-pane" id="undefine" role="tabpanel">
|
|
<!-- Nav tabs -->
|
|
<div class="card">
|
|
<div class="card-header bg-transparent pb-0">
|
|
<ul class="nav nav-underline small" 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>
|
|
</div>
|
|
<!-- Tab panes -->
|
|
<div class="tab-content card-body">
|
|
<div role="tabpanel" class="tab-pane active" id="destroy">
|
|
<p>{% trans 'This action starts remove instance process' %}</p>
|
|
{% if can_delete %}
|
|
<a href="{% url 'instances:destroy' instance.id %}" class="btn btn-danger float-end">{% trans "Destroy" %}</a>
|
|
{% else %}
|
|
<button class="btn btn-danger disabled float-end" name="delete">{% trans "Destroy" %}</button>
|
|
{% endif %}
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |