FIX [render] use isAbsent method to render user as absent or not + place homepage msg above searchbar

This commit is contained in:
2023-01-27 11:10:17 +01:00
parent f76c031ff3
commit bb7d072cc8
5 changed files with 8 additions and 8 deletions

View File

@@ -69,6 +69,11 @@
{% block content %}
<div class="col-8 main_search">
{% if app.user.isAbsent %}
<div class="row mb-5">
<p class="alert alert-warning" role="alert">{{'absence.You are marked as being absent'|trans }}</p>
</div>
{% endif %}
<h2>{{ 'Search'|trans }}</h2>
<form action="{{ path('chill_main_search') }}" method="get">