1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(ui): lists say they are empty plainly, filter by themselves and fit a phone

- An empty list says so in gray text, as the VM list does, not in a
  yellow warning or a blue notice (host pools, networks, filters,
  secrets, interfaces, tags, removed VMs, backups, schedules, targets).
- The Jobs and Backups filters show only while there is something to
  filter.
- The Jobs, Backups and Logs filters apply once a choice changes or
  Enter is pressed (filter_form.js): no Filter or Search button, and
  Clear the filters only while one is set.
- On a phone the Logs table shows the date, user, VM and message, with
  the result under it, and the Computes table the host and its memory.
This commit is contained in:
catborise 2026-11-21 20:17:13 +03:00
parent 383cbe89a6
commit 70b0b42f8d
22 changed files with 79 additions and 71 deletions

View file

@ -16,9 +16,7 @@
{% if changeable is False %}{% include 'interfaces_unchangeable.html' %}{% endif %}
{% if ifaces_all is None %}{# not read: the error above says why #}{% elif not ifaces_all %}
<div class="alert alert-warning shadow-sm">
{% bs_icon 'exclamation-triangle' %} {% trans "libvirt lists no interfaces of this host." %}
</div>
<p class="text-center text-body-secondary py-4">{% trans "libvirt lists no interfaces of this host." %}</p>
{% else %}
<input id="filter" class="form-control w-auto mb-3" type="search" placeholder="{% trans "Search interfaces" %}" aria-label="{% trans "Search interfaces" %}">
{# a card per interface, as the networks', under its type; a type's heading shows while any of its cards does #}