Files
ludikevent_crm/templates/revervation/base.twig
Serreau Jovann 24c35a50bc ```
 feat(translations): Ajoute et met à jour les traductions françaises.

This commit adds new French translations for the catalog page, base SEO,
navigation, and footer. It also updates existing translations to be
more accurate and consistent.
```
2026-01-28 16:23:37 +01:00

158 lines
8.7 KiB
Twig

<!DOCTYPE html>
<html lang="{{ app.request.locale }}" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{# --- SEO Fondamental --- #}
<title>
{% block title %}{{ 'base.seo.title'|trans }}{% endblock %}
</title>
{% if block('description') is defined %}
<meta name="description" content="{{ block('description')|replace({"\n": '', "\r": '', ' ': ''})|trim }}">
{% endif %}
{% block canonical %}
<link rel="canonical" href="{{ app.request.schemeAndHttpHost }}{{ app.request.pathinfo }}">
{% endblock %}
<meta name="keywords" content="{{ 'base.seo.keywords'|trans }}">
{# --- Open Graph --- #}
<meta property="og:type" content="website">
<meta property="og:url" content="{{ app.request.uri }}">
<meta property="og:title" content="{{ block('title') }}">
{% if block('description') is defined %}
<meta property="og:description" content="{{ block('description') }}">
{% endif %}
<meta property="og:image" content="{{ absolute_url(asset('provider/images/favicon.png')) }}">
{# --- Twitter Card --- #}
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ block('title') }}">
<meta name="twitter:image" content="{{ absolute_url(asset('provider/images/favicon.png')) }}">
{% block extra_header %}{% endblock %}
{# ... scripts PWA / Analytics ... #}
{{ vite_asset('reserve.js',{}) }}
{% block stylesheets %}{% endblock %}
</head>
<body class="bg-gray-50 text-gray-900 font-sans antialiased min-h-screen flex flex-col">
{% if is_granted('ROLE_USER') %}
<utm-account id="{{ app.user.id }}" email="{{ app.user.email }}" name="{{ app.user.name }} {{ app.user.surname }}"></utm-account>
{% endif %}
{# --- NAVIGATION --- #}
<nav class="sticky top-0 z-50 bg-white/95 backdrop-blur-md border-b border-gray-100" role="navigation" aria-label="{{ 'nav.aria_label'|trans }}">
<div class="max-w-8xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-20">
{# Logo #}
<div class="flex-shrink-0 flex items-center">
<a href="{{ path('reservation') }}" class="flex items-center gap-2 group">
<img src="{{ asset('provider/images/favicon.png') | imagine_filter('logo') }}"
width="48" height="48" class="w-12 h-12 relative z-10 animate-pulse"
alt="Ludikevent">
<span class="text-2xl font-black tracking-tighter uppercase text-[#f39e36]">Ludik Event</span>
</a>
</div>
{# Menu Desktop #}
<div class="hidden md:flex items-center space-x-8">
<a href="{{ path('reservation') }}" class="text-gray-700 hover:text-blue-600 font-medium transition-colors">{{ 'nav.home'|trans }}</a>
<a href="{{ path('reservation_catalogue') }}" class="text-gray-700 hover:text-blue-600 font-medium transition-colors">{{ 'nav.catalogue'|trans }}</a>
<a href="{{ path('reservation_formules') }}" class="text-gray-700 hover:text-blue-600 font-medium transition-colors">{{ 'nav.packages'|trans }}</a>
<a target="_blank" href="/images/Catalogue.pdf" class="text-gray-700 hover:text-blue-600 font-medium transition-colors">{{ 'nav.pdf'|trans }}</a>
<a href="{{ path('reservation_workflow') }}" class="text-gray-700 hover:text-blue-600 font-medium transition-colors">{{ 'nav.how_to_book'|trans }}</a>
<a href="{{ path('reservation_contact') }}" class="text-gray-700 hover:text-blue-600 font-medium transition-colors">{{ 'nav.contact'|trans }}</a>
<a href="{{ path('reservation_search') }}" class="p-2 text-gray-600 hover:text-blue-600 transition-colors" aria-label="{{ 'nav.search_aria'|trans }}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</a>
{% if app.user %}
<div class="flex items-center gap-4">
{% if is_granted('ROLE_ADMIN') %}
<a target="_blank" href="https://intranet.ludikevent.fr/crm" class="text-xs font-black uppercase tracking-widest text-amber-800 bg-amber-50 px-3 py-1 rounded-full border border-amber-200 hover:bg-amber-100 transition-colors">
{{ 'nav.admin'|trans }}
</a>
{% endif %}
<a href="{{ path('gestion_contrat') }}" class="text-[#f39e36] flex items-center gap-2 font-bold hover:opacity-70 transition-opacity">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/></svg>
{{ 'nav.my_account'|trans }}
</a>
<a href="{{ path('reservation_logout') }}" class="text-gray-500 hover:text-red-600 transition-colors" title="{{ 'nav.logout'|trans }}" aria-label="{{ 'nav.logout'|trans }}">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/></svg>
</a>
</div>
{% else %}
<a href="{{ path('reservation_login') }}" class="text-[#f39e36] font-bold transition-colors flex items-center gap-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/></svg>
{{ 'nav.login'|trans }}
</a>
{% endif %}
</div>
{# Bouton Menu Mobile #}
<div class="md:hidden flex items-center">
<button id="menu-button" type="button" class="text-gray-700 p-2 focus:outline-none" aria-expanded="false" aria-controls="mobile-menu" aria-label="{{ 'nav.mobile_open'|trans }}">
<svg class="h-8 w-8" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" /></svg>
</button>
</div>
</div>
</div>
</nav>
{# --- MESSAGES FLASH --- #}
{% for label, messages in app.flashes %}
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mt-4" role="alert">
{% for message in messages %}
<div class="flex items-center justify-between p-4 rounded-2xl shadow-lg border">
<div class="flex items-center gap-3">
<p class="text-sm font-bold uppercase italic">{{ message|trans }}</p>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
<main class="flex-grow" id="main-content" role="main">
{% block body %}{% endblock %}
</main>
{# --- PIED DE PAGE --- #}
<footer class="bg-white border-t border-gray-100 py-10 mt-auto" role="contentinfo">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex flex-col md:flex-row justify-between items-center gap-8">
<div class="text-center md:text-left">
<p class="text-sm text-gray-700">
&copy; {{ "now"|date("Y") }} <span class="font-bold text-[#f39e36]">Ludikevent</span>.
{{ 'footer.rights'|trans }}
</p>
<p class="text-xs text-gray-600 mt-1">{{ 'footer.tagline'|trans }}</p>
</div>
<div class="flex flex-wrap justify-center gap-x-6 gap-y-2 text-xs text-gray-700 font-semibold">
<a href="{{ path('reservation_mentions-legal') }}" class="hover:text-blue-700 transition-colors">{{ 'footer.legal'|trans }}</a>
<a href="{{ path('reservation_cgv') }}" class="hover:text-blue-700 transition-colors">{{ 'footer.cgv'|trans }}</a>
<a href="{{ path('reservation_rgpd') }}" class="hover:text-blue-700 transition-colors">{{ 'footer.rgpd'|trans }}</a>
<a href="{{ path('reservation_cookies') }}" class="hover:text-blue-700 transition-colors">{{ 'footer.cookies'|trans }}</a>
</div>
</div>
</div>
</footer>
<cookie-banner></cookie-banner>
{% block javascripts %}{% endblock %}
</body>
</html>