UI - digging bugs from services, still some work to do

This commit is contained in:
bunkerity
2021-07-09 16:58:55 +02:00
parent 72a09eac6d
commit 3af1b397fa
8 changed files with 49 additions and 70 deletions

View File

@@ -4,7 +4,9 @@
<div class="alert alert-danger text-center">
Something went wrong...<br /><br />
{{ error }}
{% autoescape false %}
{{ error | replace("\n", "<br/>") }}
{% endautoescape %}
</div>
{% endblock %}

View File

@@ -15,6 +15,12 @@
<div class="row justify-content-center">
{% if instances|length == 0 %}
<div class="alert alert-primary text-center">
No instance to show...
</div>
{% endif %}
{% for instance in instances %}
{% set color = "dark" %}
{% if instance["status"] == "up" %}

View File

@@ -2,24 +2,25 @@
{% block content %}
{% if operation != "" %}
<div class="row justify-content-center">
<div class="col col-12 col-md-4 mb-3 text-center">
<div class="alert alert-primary alert-dismissible fade show text-break" role="alert">
{{ operation }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</div>
{% endif %}
<div class="row justify-content-center">
<div class="col col-12 mb-3 text-center">
<button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#modal-new"><i class="fas fa-plus"></i> New</button>
</div>
{% if operation != "" %}
<div class="alert alert-primary alert-dismissible fade show text-break" role="alert">
{{ operation }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endif %}
{% if services|length == 0 %}
<div class="alert alert-primary text-center">
No service to show...
</div>
{% endif %}
{% for service in services %}
{% set id_server_name = service["SERVER_NAME"].replace(".", "-") %}
@@ -58,12 +59,13 @@
</div>
</div>
{% include "services-new.html" %}
{% include "services-edit.html" %}
{% include "services-delete.html" %}
{% endfor %}
{% include "services-new.html" %}
</div>
{% endblock %}