mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
The buttons beside a page's heading floated to its right, so on a phone they came above the heading. The heading and its buttons are now one wrapping row: the heading first, the buttons beside it or under it. The Computes page, which had a heading of its own, uses the same row.
25 lines
1.4 KiB
HTML
25 lines
1.4 KiB
HTML
{% load i18n %}
|
|
{% load bootstrap_icons %}
|
|
<div class="dropdown">
|
|
<button class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
{% bs_icon 'plus-lg' %} {% trans "Add host" %}
|
|
</button>
|
|
<ul class="dropdown-menu dropdown-menu-end shadow" style="min-width: 18rem;">
|
|
<li><a class="dropdown-item" href="{% url 'add_tcp_host' %}">
|
|
<div class="fw-semibold">TCP</div>
|
|
<div class="small text-body-secondary text-wrap">{% trans "libvirt over TCP, with a SASL login" %}</div>
|
|
</a></li>
|
|
<li><a class="dropdown-item" href="{% url 'add_ssh_host' %}">
|
|
<div class="fw-semibold">SSH</div>
|
|
<div class="small text-body-secondary text-wrap">{% trans "libvirt over SSH, with the panel's SSH key" %}</div>
|
|
</a></li>
|
|
<li><a class="dropdown-item" href="{% url 'add_tls_host' %}">
|
|
<div class="fw-semibold">TLS</div>
|
|
<div class="small text-body-secondary text-wrap">{% trans "libvirt over TLS, with certificates" %}</div>
|
|
</a></li>
|
|
<li><a class="dropdown-item" href="{% url 'add_socket_host' %}">
|
|
<div class="fw-semibold">{% trans "Local" %}</div>
|
|
<div class="small text-body-secondary text-wrap">{% trans "the libvirt of the host the panel runs on, by its socket" %}</div>
|
|
</a></li>
|
|
</ul>
|
|
</div>
|