From 48cf5841f2434c8e2aca4612f1dc1da8c077aa11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sun, 9 Mar 2025 14:37:27 +0100 Subject: [PATCH] NEW MODAL informacje o serwerze --- templates/server_list.html | 270 ++++++++++++++++++++++--------------- 1 file changed, 164 insertions(+), 106 deletions(-) diff --git a/templates/server_list.html b/templates/server_list.html index 1b85142..6dbf61e 100644 --- a/templates/server_list.html +++ b/templates/server_list.html @@ -8,97 +8,132 @@ max-width: 300px; text-align: left; } - .badge-status { - font-size: 0.73em; - } - .action-btns a, .action-btns button { - margin-right: 4px; - } {% endblock %} {% block content %} -
-
-
-

Lista serwerów

-
-
- - - - - - - - - - - - - - - - - - {% for h in hosts %} - - - - - - - - - - - - - - {% endfor %} - -
IDNazwa serweraUżytkownikPortTypUwierzytelnianiePlik /etc/hostsAuto DeployAuto BackupWyłącz CIDRAkcje
{{ h.id }} - {% if h.use_daemon and h.type == 'linux' and h.daemon_url %} - {{ h.resolved_daemon }} - {% else %} - {{ h.resolved_hostname }} - {% endif %} - {{ '-' if h.use_daemon and h.type == 'linux' else h.username }}{{ '-' if h.use_daemon and h.type == 'linux' else h.port }} - {{ 'Linux (daemon)' if h.use_daemon else h.type.capitalize() }} - {{ '- linux daemon -' if h.use_daemon else h.auth_method|capitalize }}{{ h.preferred_hostfile.title if h.preferred_hostfile else '(Default)' }} -
- - -
-
-
- - -
-
-
- - -
-
- Edytuj - {% if h.use_daemon and h.type == 'linux' %} - - {% else %} - Testuj - {% endif %} - Backup -
- -
-
-
+
+
+

Lista serwerów

- -
- Dodaj nowy serwer - Importuj z CSV - Eksportuj do CSV +
+ + + + + + + + + + + + + + + + + + {% for h in hosts %} + + + + + + + + + + + + + + + {% endfor %} + + +
IDNazwa serweraUżytkownikPortTypUwierzytelnianieWybrany plik /etc/hostsAuto DeployAuto BackupWyłącz CIDR/regex deployAkcje
{{ h.id }} + {% if h.use_daemon and h.type == 'linux' and h.daemon_url %} + {{ h.resolved_daemon }} + {% else %} + {{ h.resolved_hostname }} + {% endif %} + + {% if h.use_daemon and h.type == 'linux' %} + + {% else %} + {{ h.username }} + {% endif %} + + {% if h.use_daemon and h.type == 'linux' %} + + {% else %} + {{ h.port }} + {% endif %} + + {% if h.type == 'linux' %} + Linux{% if h.use_daemon %} (Demon){% endif %} + {% else %} + Mikrotik + {% endif %} + + {% if h.use_daemon and h.type == 'linux' %} + - używa Demona - + {% else %} + {% if h.auth_method == 'password' %} + Hasło + {% elif h.auth_method == 'ssh_key' %} + Klucz SSH + {% elif h.auth_method == 'global_key' %} + Globalny klucz + {% else %} + {{ h.auth_method }} + {% endif %} + {% endif %} + + {% if h.preferred_hostfile %} + {{ h.preferred_hostfile.title }} + {% else %} + (Default) + {% endif %} + +
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ Edytuj + + {% if h.use_daemon and h.type == 'linux' %} + + + {% else %} + + Testuj + {% endif %} + + Backup +
+ +
+
+
@@ -111,19 +146,23 @@