migrated admin_messages; minor fixes in admin-listing and ipsandports::add defaults

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-03-24 13:40:43 +01:00
parent 66f97738c2
commit 25b9e5b540
14 changed files with 99 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
<div class="alert alert-{{ type }} fade show pb-1" role="alert">
<div class="alert alert-{{ type|default("info") }} fade show pb-1" role="alert">
{% if heading is defined and heading is not empty %}
<h4 class="alert-heading">
{{ heading }}

View File

@@ -1,8 +1,10 @@
{% extends "Froxlor/user/form.html.twig" %}
{% block content %}
<div class="row mb-2">
{% include 'Froxlor/misc/alertbox.html.twig' %}
</div>
{% if alert_msg is defined and alert_msg is not empty %}
<div class="row mb-2">
{% include 'Froxlor/misc/alertbox.html.twig' %}
</div>
{% endif %}
{{ parent() }}
{% endblock %}