minor fixes in pagination and alertbox stuff
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -3,23 +3,5 @@
|
||||
{% set body_class = "min-vh-100 d-flex align-items-center" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="alert alert-{{ type }} fade show" role="alert">
|
||||
<h4 class="alert-heading">
|
||||
{{ heading }}
|
||||
</h4>
|
||||
<p>
|
||||
{{ alert_msg|raw }}
|
||||
</p>
|
||||
{% if alert_info %}
|
||||
<hr>
|
||||
<p class="mb-0">
|
||||
<pre>{{ alert_info|raw }}</pre>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if redirect_link %}
|
||||
<p class="mt-1">
|
||||
<a href="{{ redirect_link|raw }}" class="btn btn-{{ btntype }}">{% if type == 'danger' %}{{ lng('panel.back') }}{% else %}{{ lng('success.clickheretocontinue') }}{% endif %}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include 'Froxlor/misc/alertbox.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -3,23 +3,5 @@
|
||||
{% set body_class = "min-vh-100 d-flex align-items-center" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="alert alert-{{ type }} fade show" role="alert">
|
||||
<h4 class="alert-heading">
|
||||
{{ heading }}
|
||||
</h4>
|
||||
<p>
|
||||
{{ alert_msg|raw }}
|
||||
</p>
|
||||
{% if alert_info %}
|
||||
<hr>
|
||||
<p class="mb-0">
|
||||
<pre>{{ alert_info|raw }}</pre>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if redirect_link %}
|
||||
<p class="mt-1 text-center">
|
||||
<a href="{{ redirect_link }}" class="btn btn-{{ type }}">{% if type == 'danger' %}{{ lng('panel.back') }}{% else %}{{ lng('success.clickheretocontinue') }}{% endif %}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include 'Froxlor/misc/alertbox.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
27
templates/Froxlor/misc/alertbox.html.twig
Normal file
27
templates/Froxlor/misc/alertbox.html.twig
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="alert alert-{{ type }} fade show pb-0" role="alert">
|
||||
{% if heading is defined and heading is not empty %}
|
||||
<h4 class="alert-heading">
|
||||
{{ heading }}
|
||||
</h4>
|
||||
{% endif %}
|
||||
<p>
|
||||
{{ alert_msg|raw }}
|
||||
</p>
|
||||
{% if alert_info %}
|
||||
<hr>
|
||||
<p class="mb-0">
|
||||
<pre>{{ alert_info|raw }}</pre>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if redirect_link %}
|
||||
<p class="mt-1">
|
||||
<a href="{{ redirect_link|raw }}" class="btn btn-{{ btntype }}">
|
||||
{% if type == 'danger' %}
|
||||
{{ lng('panel.back') }}
|
||||
{% else %}
|
||||
{{ lng('success.clickheretocontinue') }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user