Fixed: [template] integration of absence alert box

This commit is contained in:
Mathieu Jaumotte 2023-01-30 15:16:38 +01:00
parent 1a8e21a77f
commit 2165e04ec3

View File

@ -70,9 +70,11 @@
{% block content %} {% block content %}
<div class="col-8 main_search"> <div class="col-8 main_search">
{% if app.user.isAbsent %} {% if app.user.isAbsent %}
<div class="row mb-5"> <div class="d-flex flex-row mb-5 alert alert-warning" role="alert">
<p class="alert alert-warning" role="alert">{{'absence.You are marked as being absent'|trans }}</p> <p class="m-2">{{'absence.You are marked as being absent'|trans }}</p>
{# <a class="btn btn-edit" title="Modifier" href="{{ path('chill_main_user_absence_index') }}"></a>#} <span class="ms-auto">
<a class="btn btn-remove" title="Modifier" href="{{ path('chill_main_user_absence_index') }}">{{ 'absence.Unset absence'|trans }}</a>
</span>
</div> </div>
{% endif %} {% endif %}
<h2>{{ 'Search'|trans }}</h2> <h2>{{ 'Search'|trans }}</h2>