NEW MODAL informacje o serwerze

This commit is contained in:
Mateusz Gruszczyński 2025-03-09 14:51:52 +01:00
parent d003683cd2
commit 75a9e2399b

View File

@ -137,7 +137,15 @@
</div>
</div>
<!-- Modal z informacjami -->
<div class="mt-3 text-center">
<a href="{{ url_for('add_server') }}" class="btn btn-secondary">Dodaj nowy serwer</a>
<a href="{{ url_for('import_servers') }}" class="btn btn-secondary">Importuj z CSV</a>
<a href="{{ url_for('export_servers_to_csv') }}" class="btn btn-secondary">Eksportuj do CSV</a>
</div>
<div class="modal fade" id="serverInfoModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
@ -146,23 +154,10 @@
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<p><strong>Host:</strong> <span id="modal-hostname"></span></p>
<label><strong>CPU:</strong></label>
<div class="progress mb-3">
<div id="modal-cpu" class="progress-bar" role="progressbar"></div>
</div>
<label><strong>Pamięć:</strong></label>
<div class="progress mb-3">
<div id="modal-mem" class="progress-bar bg-warning" role="progressbar"></div>
</div>
<label><strong>Dysk:</strong></label>
<div class="progress mb-3">
<div id="modal-disk" class="progress-bar bg-success" role="progressbar"></div>
</div>
<p><strong>Host:</strong> <span id="modal-hostname"></span> (<span id="modal-ip"></span>)</p>
<p><strong>CPU:</strong> <span id="modal-cpu"></span>%</p>
<p><strong>Pamięć:</strong> <span id="modal-mem"></span>%</p>
<p><strong>Dysk:</strong> <span id="modal-disk"></span>%</p>
<p><strong>Czas działania:</strong> <span id="modal-uptime"></span></p>
</div>
<div class="modal-footer">
@ -172,12 +167,6 @@
</div>
</div>
<div class="mt-3 text-center">
<a href="{{ url_for('add_server') }}" class="btn btn-secondary">Dodaj nowy serwer</a>
<a href="{{ url_for('import_servers') }}" class="btn btn-secondary">Importuj z CSV</a>
<a href="{{ url_for('export_servers_to_csv') }}" class="btn btn-secondary">Eksportuj do CSV</a>
</div>
{% endblock %}
{% block extra_js %}
{% block extra_js %}