templates/base.html.twig line 1
<!DOCTYPE html><html lang="fr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>{% block title %}{% endblock %} | Roomlers</title><link rel="icon" href="{{ asset('/images/site/logo.png') }}"/>{# CSS Bootstrap et FontAwesome via CDN #}<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"><script src="https://kit.fontawesome.com/73b7cac54e.js" crossorigin="anonymous"></script>{# CSS Tailwind (si utilisé en complément) #}<script src="https://cdn.tailwindcss.com"></script>{# Stylesheets spécifiques au projet (Webpack Encore) #}{% block stylesheets %}{{ encore_entry_link_tags('app') }}{% endblock %}{# Google Analytics #}<script async src="https://www.googletagmanager.com/gtag/js?id=G-FK00Z7YFTE"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-FK00Z7YFTE');</script></head><body class="flex flex-col min-h-screen">{# Définir dynamiquement la barre de navigation selon le rôle utilisateur #}{% set nav_template = 'components/nav_landing.html.twig' %}{% if app.user %}{% if app.user.asRole('ROLE_TENANT') %}{% set nav_template = 'components/nav_tenant.html.twig' %}{% elseif app.user.asRole('ROLE_LESSOR') or app.user.asRole('ROLE_LESSOR_RESIDENT') %}{% set nav_template = 'components/nav_lessor.html.twig' %}{% elseif app.user.asRole('ROLE_AGENT') or app.user.asRole('ROLE_SUPER_AGENT') %}{% set nav_template = 'components/nav_agent.html.twig' %}{% endif %}{% endif %}{% include nav_template %}{% for label, messages in app.flashes %}{% for message in messages %}<div class="alert alert-{{ label }}">{{ message }}</div>{% endfor %}{% endfor %}{# Contenu principal #}<main class="flex-grow"><div class="container mx-auto px-4 py-6">{% block body %}{% endblock %}</div></main>{# Pied de page #}{% include "/components/footer_landing.html.twig" %}{# JavaScript #}<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>{% block javascripts %}<script>document.addEventListener('contextmenu', event => event.preventDefault());</script>{{ encore_entry_script_tags('app') }}{% endblock %}{% block extra_javascripts %}{% include 'includes/session_timeout.js.twig' %}{% endblock %}</body></html>