action-menu and info-box testing for overviews

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-25 19:36:22 +01:00
parent 8c6452bb05
commit cdc4eccdd9
2 changed files with 35 additions and 6 deletions

View File

@@ -1,9 +1,24 @@
{% extends "Froxlor/userarea.html.twig" %}
{% block content %}
{% import "Froxlor/table/table.html.twig" as table %}
{{ table.table(listing) }}
<div class="row">
<div class="col-12 col-md-10 order-2 order-md-1">
{% import "Froxlor/table/table.html.twig" as table %}
{{ table.table(listing) }}
</div>
{% if add_link is iterable or (entity_info is defined and entity_info is not empty) %}
<div class="col-12 col-md-2 order-1 order-md-2">
{% if add_link is iterable %}
<a class="btn btn-success d-block" href="{{ add_link.href|raw }}">
<i class="fa-solid fa-plus-circle"></i>
{{ add_link.label }}</a>
{% endif %}
{% if entity_info is defined and entity_info is not empty %}
<div class="alert alert-info mt-2" role="alert">
{{ entity_info|raw }}
</div>
{% endif %}
</div>
{% endif %}
</div>
{% endblock %}