Templates updated to glassmorphism (40+ files): - templates/admin/clients/ (create, index): glass cards, input-glass inputs, btn-gold buttons, glass table headers, semi-transparent badges - templates/admin/dashboard.html.twig: glass KPI cards - templates/admin/profil/index.html.twig: glass form panels - templates/admin/revendeurs/ (create, edit, index): glass cards and tables - templates/admin/services/index.html.twig: glass service cards - templates/admin/status/ (index, manage): glass panels - templates/admin/sync/index.html.twig: glass panels - templates/admin/facturation/index.html.twig: glass tables - templates/admin/membres.html.twig: glass form, checkboxes with esy-* group values (esy-web, esy-mail, esy-mailer, esy-analytics, esy-monitor, esy-defender, esy-translate, esy-signature, esy-creator, esy-aide, esy-meet, esy-tchat, esy-ndd), Keycloak groups column in table, available groups section - templates/admin/stats/index.html.twig: glass KPI cards, glass-gold CA TTC, factures emises/payees/impayees cards, services renamed to Esy-*, rounded progress bars, bg-gray-200 track backgrounds - templates/security/ (2fa_email, 2fa_google, forgot_password, set_password, set_password_expired): glass headers, glass-heavy cards, input-glass - templates/legal/ (cgu, cgv, cookie, conformite, hebergement, mention_legal, rgpd, tarif): removed thick borders, font-black to font-bold, text-3xl to text-2xl headings - templates/attestation/ (verify, not_found): glass panels - templates/espace_client/index.html.twig: glass panels - templates/espace_prestataire/index.html.twig: glass panels - templates/external_redirect.html.twig: glass card - templates/status/index.html.twig: glass panels - templates/email/base.html.twig: gradient gold header, rounded-16px container, semi-transparent bg, soft shadow, footer address - templates/emails/*.html.twig (9 files): removed 4px borders, font-weight 900 to 700 - templates/pdf/*.html.twig (4 files): rounded borders, gradient header, lighter borders Keycloak auto-provisioning: - src/Service/KeycloakAdminService.php: added REQUIRED_GROUPS constant (15 groups: siteconseil_admin, siteconseil_member, esy-web, esy-mail, esy-mailer, esy-analytics, esy-monitor, esy-defender, esy-translate, esy-signature, esy-creator, esy-aide, esy-meet, esy-tchat, esy-ndd), ensureRequiredGroups() method that checks existing groups and creates missing ones, createGroup() method, getRequiredGroups() static accessor - src/Controller/Admin/MembresController.php: calls ensureRequiredGroups() on page load, shows flash for each auto-created group, fetches user groups per member, passes availableGroups to template Stats controller updated: - src/Controller/Admin/StatsController.php: services renamed to Esy-* (13 services), added factures_emises/payees/impayees KPI data OAuth fix: - src/Security/KeycloakAuthenticator.php: removed dd() debug calls, restored flash message on auth failure with error detail Config: - .env: KEYCLOAK_ADMIN_CLIENT_ID=crm_siteconseil_admin, secret updated - .env.local: same updates - ansible/env.local.j2: KEYCLOAK_ADMIN_CLIENT_ID=crm_siteconseil_admin Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
48 lines
2.4 KiB
Twig
48 lines
2.4 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Redirection externe - CRM SITECONSEIL{% endblock %}
|
|
|
|
{% block header %}
|
|
<header class="sticky top-0 z-50 glass-heavy" style="border-radius: 0;">
|
|
<div class="flex justify-center items-center h-16">
|
|
<a href="{{ path('app_home') }}" aria-label="CRM SITECONSEIL - Accueil">
|
|
<img class="h-10 md:h-12 w-auto" src="{{ 'logo_facture.png' | imagine_filter('logo') }}" alt="CRM SITECONSEIL" loading="eager">
|
|
</a>
|
|
</div>
|
|
</header>
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="flex items-center justify-center min-h-[calc(100vh-5rem)] px-4">
|
|
<div class="w-full max-w-md">
|
|
<div class="glass-heavy overflow-hidden p-8 text-center">
|
|
<div class="mb-4">
|
|
<svg class="w-12 h-12 mx-auto text-yellow-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"/></svg>
|
|
</div>
|
|
<h1 class="text-xl font-bold uppercase mb-2">Redirection externe</h1>
|
|
<p class="text-sm text-gray-600 mb-4">Vous etes sur le point de quitter CRM SITECONSEIL pour un site externe.</p>
|
|
|
|
{% if url %}
|
|
<div class="border-2 border-gray-200 bg-gray-50 p-3 mb-6 break-all">
|
|
<p class="text-xs font-mono text-gray-500">{{ url }}</p>
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-3">
|
|
<a href="{{ url }}" rel="noopener noreferrer" class="w-full px-6 py-3 btn-gold text-sm font-bold uppercase tracking-wider text-gray-900 text-center">
|
|
Continuer
|
|
</a>
|
|
<a href="{{ path('app_home') }}" class="text-xs font-bold text-gray-500 hover:text-indigo-600 transition-colors">
|
|
Retour a l'accueil
|
|
</a>
|
|
</div>
|
|
{% else %}
|
|
<p class="text-sm text-red-600 font-bold mb-4">Aucune URL de redirection fournie.</p>
|
|
<a href="{{ path('app_home') }}" class="inline-block px-6 py-3 glass bg-[#fabf04] font-bold uppercase text-sm tracking-widest hover:bg-yellow-500 transition-all">
|
|
Retour a l'accueil
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|