From 67c6e8a92e9de01e182fd6f87dace6df9bdd3b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sun, 9 Mar 2025 14:25:22 +0100 Subject: [PATCH] NEW MODAL informacje o serwerze --- templates/server_list.html | 299 ++++++++++++++----------------------- 1 file changed, 112 insertions(+), 187 deletions(-) diff --git a/templates/server_list.html b/templates/server_list.html index 6bd4ab0..df52930 100644 --- a/templates/server_list.html +++ b/templates/server_list.html @@ -8,220 +8,145 @@ max-width: 300px; text-align: left; } + .badge-status { + font-size: 0.85em; + } + .action-btns a, + .action-btns button { + margin-right: 3px; + } {% endblock %} {% block content %} -
-
-

Lista serwerów

-
-
- - - - - - - - - - - - - - - - - - {% for h in hosts %} - - - - - - - - - + + + + + + + + + + {% endfor %} + +
IDNazwa hostaUż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 +
+
+
+

Lista serwerów

+
+
+ + + + + + + + + + + + + + + + + + {% for h in hosts %} + + + - - - - - - {% endfor %} - - -
IDNazwa hostaUż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.auth_method }} + {{ h.resolved_hostname }} {% 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 -
- -
-
-
-
- - -
{{ '-' if h.use_daemon and h.type == 'linux' else h.username }}{{ '-' if h.use_daemon and h.type == 'linux' else h.port }} + {{ 'Linux (Demon)' if h.use_daemon else h.type.capitalize() }} + {{ '- używa Demona -' if h.use_daemon else h.auth_method|capitalize }}{{ h.preferred_hostfile.title if h.preferred_hostfile else '(Default)' }} +
+ + +
+
+
+ + +
+
+
+ + +
+
+ + + + {% if h.use_daemon and h.type == 'linux' %} + + {% else %} + + + + {% endif %} + + + +
+ +
+
+ +
+ Dodaj nowy serwer + Importuj z CSV + Eksportuj do CSV +
+ +{% include 'server_info_modal.html' %} -
- Dodaj nowy serwer - Importuj z CSV - Eksportuj do CSV -
{% endblock %} + {% block extra_js %} - + {% endblock %} \ No newline at end of file