templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     {% set company = company_settings() %}
  4.     <head>
  5.         <meta charset="UTF-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1">
  7.         <meta name="theme-color" content="{{ company.primary_color|default('#0f2a44') }}">
  8.         <title>{% block title %}{{ company.software_name|default('Plateforme immobiliere') }}{% endblock %}</title>
  9.         <link rel="manifest" href="{{ asset('manifest.json') }}">
  10.         <link rel="icon" href="{% if company.favicon_path|default(null) %}{{ asset(company.favicon_path) }}{% else %}data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Crect width='128' height='128' rx='24' fill='%230f2a44'/%3E%3Cpath d='M28 96V52l36-24 36 24v44H76V72H52v24z' fill='%23f7f4ee'/%3E%3Cpath d='M52 96V72h24v24' fill='%232e8b57'/%3E%3C/svg%3E{% endif %}">
  11.         {% block stylesheets %}
  12.             <link rel="stylesheet" href="{{ asset('assets/app.css') }}?v=20260804-auth-reset">
  13.             <style>
  14.                 :root {
  15.                     --navy: {{ company.primary_color|default('#0f2a44') }};
  16.                     --orange: {{ company.secondary_color|default('#f58220') }};
  17.                 }
  18.             </style>
  19.         {% endblock %}
  20.     </head>
  21.     <body class="{% if app.user %}app-body{% else %}public-body{% endif %}">
  22.         {% if app.user %}
  23.             <div class="app-shell">
  24.                 {% if is_granted('ROLE_CLIENT') %}
  25.                     {% include 'components/_client_nav.html.twig' %}
  26.                 {% else %}
  27.                     {% include 'components/_admin_nav.html.twig' %}
  28.                 {% endif %}
  29.                 <main class="main-panel">
  30.                     <header class="topbar">
  31.                         <button class="icon-button sidebar-toggle" type="button" data-sidebar-toggle aria-label="Menu">
  32.                             <i data-lucide="menu"></i>
  33.                         </button>
  34.                         <div>
  35.                             <p class="eyebrow">{{ company.commercial_name|default('Agence immobiliere') }}</p>
  36.                             <strong>{% block page_title %}{{ company.software_name|default('Plateforme immobiliere') }}{% endblock %}</strong>
  37.                         </div>
  38.                         <div class="topbar-actions">
  39.                             <a class="ghost-button" href="{{ path('app_change_password') }}"><i data-lucide="key-round"></i>Mot de passe</a>
  40.                             <a class="primary-button compact" href="{{ path('app_logout') }}"><i data-lucide="log-out"></i>Sortir</a>
  41.                         </div>
  42.                     </header>
  43.         {% endif %}
  44.         {% include 'components/_flash.html.twig' %}
  45.         {% block body %}{% endblock %}
  46.         {% if app.user %}
  47.                 </main>
  48.             </div>
  49.         {% endif %}
  50.         {% block javascripts %}
  51.             <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
  52.             <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  53.             <script src="{{ asset('assets/app.js') }}?v=20260803-client-admin-ui"></script>
  54.         {% endblock %}
  55.     </body>
  56. </html>