{% trans_default_domain 'messages' %}
{% if app.user is not null %}
{% set flashMessages = app.session.flashBag.all() %}
{% endif %}
<!DOCTYPE html>
<html lang="{{ app.request.locale|split('_')[0] }}">
<head>
<meta charset="UTF-8">
<title>{{ app_name }} - {% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="{{ asset('build/frontend/images/ffcb.ico', 'frontend') }}" />
{{ encore_entry_link_tags('app', null, 'frontend') }}
{% block stylesheets %}{% endblock %}
{{ encore_entry_script_tags('app', null, 'frontend') }}
{% block javascripts %}{% endblock %}
</head>
{% set userConnected = (app.user is defined and app.user is not null and app.user.changePassword == false) %}
<body
data-turbo="false"
{% if userConnected %}
data-controller="flash-message"
data-flash-message-messages-value="{{ flashMessages|length == 0 ? '{}' : flashMessages|json_encode }}"
{% endif %}
>
<div class="wrapper">
<div class="main">
{% if userConnected %}
{% include 'frontend/partials/_header.html.twig' %}
{% endif %}
<main class="content">
<div class="container-fluid">
<div id="alert-content">
{% include 'frontend/partials/_flashes.html.twig' %}
</div>
{% block body %}{% endblock %}
</div>
</main>
{% if userConnected %}
{% include 'frontend/partials/_footer.html.twig' %}
{% endif %}
</div>
</div>
</body>
</html>