Devis :
- Entity DevisLine (pos, title, description, priceHt) liee a Devis (OneToMany cascade/orphanRemoval)
- Champs ajoutes sur Devis : customer (ManyToOne), submissionId, state machine (created/send/accepted/refused/cancel), raisonMessage, totaux HT/TVA/TTC, updatedAt, setUpdatedAt public
- Relation Devis <-> Advert changee de ManyToOne a OneToOne nullable
- Vich Attribute (migration Annotation -> Attribute) pour unsignedPdf/signedPdf/auditPdf
- DevisController CRUD complet : create (form repeater lignes + boutons rapides TarificationService), edit, cancel (libere OrderNumber), generate-pdf, send, resend, create-advert, events
- DevisPdf (FPDF/FPDI) : header legacy (logo, num, date, client), body lignes, summary totaux, footer SITECONSEIL + pagination, champ signature DocuSeal sur page devis + derniere page CGV
- OrderNumberService : preview() et generate() reutilisent les OrderNumber non utilises (isUsed=false) en priorite
- OrderNumber::markAsUnused() ajoute
DocuSeal integration devis :
- DocuSealService : sendDevisForSignature (avec completed_redirect_url), resendDevisSignature (archive ancienne submission), getSubmitterSlug, downloadSignedDevis (sauvegarde via Vich UploadedFile test=true)
- WebhookDocuSealController : dispatch par doc_type devis/attestation, handleDevisEvent (form.completed -> STATE_ACCEPTED + download PDF signe/audit, form.declined -> STATE_REFUSED + raison)
- DocusealEvent entity pour tracer form.viewed/started/completed/declined en temps reel
- Page evenements admin /admin/devis/{id}/events avec badges et payload JSON
Signature client :
- DevisProcessController : page publique /devis/process/{id}/{hmac} securisee par HMAC, boutons Signer (redirect DocuSeal) / Refuser (motif optionnel)
- Pages confirmation : signed.html.twig (merci + recap) et refused.html.twig (confirmation refus + motif)
- Nelmio whitelist : signature.esy-web.dev + signature.siteconseil.fr
Avis de paiement :
- Entity AdvertLine (pos, title, description, priceHt) liee a Advert
- Advert refactorise : customer, state, totaux, raisonMessage, submissionId, advertFile (Vich mapping advert_pdf), lines collection, updatedAt
- AdvertController : generate-pdf, send (mail + PJ + lien paiement), resend (rappel), cancel (delie devis, libere OrderNumber), search Meilisearch
- AdvertPdf (FPDF/FPDI) : QR code Endroid pointant vers /order/{numOrder}, texte "Scannez pour payer"
- OrderPaymentController : page publique /order/{numOrder} avec detail prestations, totaux, options paiement (placeholder)
- Creation auto depuis devis signe : copie client, totaux, lignes, meme OrderNumber
Meilisearch :
- Index customer_devis et customer_advert avec searchable (numOrder, customerName, customerEmail, state) et filterable (customerId, state)
- CRUD indexation sur chaque action (create, edit, send, cancel, create-advert)
- Recherche AJAX dans tabs Devis et Avis avec debounce + dropdown glassmorphism
- Sync admin : boutons syncDevis / syncAdverts + compteurs dans /admin/sync
Emails :
- MailerService : VCF auto (fiche contact SARL SITECONSEIL) en PJ sur tous les mails, bloc HTML pieces jointes injecte automatiquement (exclut .asc/.p7z/smime) avec icone trombone + taille fichier
- Templates : devis_to_sign, devis_signed_client/admin (PJ signed+audit), devis_refused_client/admin, advert_send (PJ + bouton paiement), ndd_expiration
- TestMailCommand : option --force-dsn pour envoyer via un DSN SMTP specifique (test prod depuis dev)
Commande NDD :
- app:ndd:check : verifie expiration domaines <= 30j, envoie mail groupe a monitor@siteconseil.fr
- Cron quotidien 8h (docker + ansible)
Divers :
- Titles templates : CRM SITECONSEIL -> SARL SITECONSEIL (52 fichiers)
- VAULT_URL dev = https://kms.esy-web.dev (comme prod)
- app.js : initDevisLines (repeater + drag & drop), initTabSearch, toggle refus devis
- app.scss : styles drag & drop
- setasign/fpdi-fpdf installe pour fusion PDF
- 5 migrations Doctrine
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
190 lines
12 KiB
Twig
190 lines
12 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}SARL SITECONSEIL{% endblock %}</title>
|
|
{{ pwa() }}
|
|
{% block meta %}
|
|
<meta name="description" content="{% block description %}CRM SITECONSEIL - Plateforme de gestion de la SARL SITECONSEIL{% endblock %}">
|
|
{% endblock %}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "Organization",
|
|
"name": "CRM SITECONSEIL",
|
|
"url": "https://crm.siteconseil.fr",
|
|
"logo": "https://crm.siteconseil.fr/logo_facture.png",
|
|
"email": "contact@siteconseil.fr",
|
|
"telephone": "+33679348802",
|
|
"address": {
|
|
"@type": "PostalAddress",
|
|
"streetAddress": "27 rue Le Sérurier",
|
|
"addressLocality": "Saint-Quentin",
|
|
"postalCode": "02100",
|
|
"addressCountry": "FR"
|
|
},
|
|
"sameAs": [
|
|
"https://www.siteconseil.fr"
|
|
]
|
|
}
|
|
</script>
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "WebSite",
|
|
"name": "CRM SITECONSEIL",
|
|
"url": "https://crm.siteconseil.fr"
|
|
}
|
|
</script>
|
|
{% if breadcrumbs is defined and breadcrumbs is not empty %}
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "BreadcrumbList",
|
|
"itemListElement": [
|
|
{% for breadcrumb in breadcrumbs %}
|
|
{
|
|
"@type": "ListItem",
|
|
"position": {{ loop.index }},
|
|
"name": {{ breadcrumb.name|json_encode|raw }}{% if not loop.last and breadcrumb.url is defined and breadcrumb.url is not empty %},
|
|
"item": {{ absolute_url(breadcrumb.url)|json_encode|raw }}{% endif %}
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
]
|
|
}
|
|
</script>
|
|
{% endif %}
|
|
{% block og %}
|
|
<meta property="og:title" content="{% block og_title %}{{ block('title') }}{% endblock %}">
|
|
<meta property="og:description" content="{% block og_description %}{{ block('description') }}{% endblock %}">
|
|
<meta property="og:type" content="{% block og_type %}website{% endblock %}">
|
|
<meta property="og:url" content="{{ app.request.uri }}">
|
|
<meta property="og:locale" content="fr_FR">
|
|
<meta property="og:site_name" content="CRM SITECONSEIL">
|
|
{% block og_image %}
|
|
<meta property="og:image" content="https://crm.siteconseil.fr/logo_facture.png">
|
|
{% endblock %}
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content="{{ block('og_title') }}">
|
|
<meta name="twitter:description" content="{{ block('og_description') }}">
|
|
{% endblock %}
|
|
{% block stylesheets %}{% endblock %}
|
|
{% block javascripts %}
|
|
{{ vite_asset('app.js') }}
|
|
{% endblock %}
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body class="{% block body_class %}min-h-screen flex flex-col{% endblock %} glass-bg text-[#111827]">
|
|
{% block header %}
|
|
<header class="sticky top-0 z-50 glass-heavy" style="border-radius: 0;">
|
|
<nav class="max-w-7xl mx-auto px-4 lg:px-8" role="navigation" aria-label="Navigation principale" itemscope itemtype="https://schema.org/SiteNavigationElement">
|
|
<div class="flex justify-between items-center h-16">
|
|
<div class="flex-shrink-0">
|
|
<a href="{{ path('app_home') }}" class="flex items-center group" aria-label="CRM SITECONSEIL - Retour a l'accueil">
|
|
<img class="h-10 md:h-12 w-auto" src="{{ 'logo_facture.png' | imagine_filter('navbar_logo') }}" alt="CRM SITECONSEIL" loading="eager">
|
|
</a>
|
|
</div>
|
|
|
|
<div class="hidden lg:flex items-center gap-1">
|
|
{% set current_route = app.request.attributes.get('_route') %}
|
|
<a href="{{ path('app_home') }}" itemprop="url" class="px-4 py-2 text-xs font-bold uppercase tracking-wider rounded-lg transition-all {{ current_route == 'app_home' ? 'bg-[#fabf04] text-gray-900 shadow-[0_2px_12px_rgba(250,191,4,0.3)]' : 'text-gray-600 hover:text-gray-900 hover:bg-white/50' }}"><span itemprop="name">Accueil</span></a>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-3">
|
|
{% if app.user %}
|
|
<a href="{{ path('app_espace_client_index') }}" class="btn-gold px-4 py-2 text-xs font-bold uppercase tracking-wider hidden lg:inline-flex">Espace Client</a>
|
|
<a href="{{ path('app_espace_prestataire_index') }}" class="btn-glass px-4 py-2 text-xs font-bold uppercase tracking-wider hidden lg:inline-flex">Espace Prestataire</a>
|
|
<a href="#" class="btn-glass p-2 flex items-center justify-center" aria-label="Mon compte">
|
|
<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>
|
|
</a>
|
|
{% else %}
|
|
<a href="{{ path('app_home') }}" class="btn-glass p-2 flex items-center justify-center" aria-label="Connexion">
|
|
<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>
|
|
</a>
|
|
{% endif %}
|
|
|
|
<button id="mobile-menu-btn" class="lg:hidden btn-gold p-2" aria-label="Ouvrir le menu de navigation" aria-expanded="false" aria-controls="mobile-menu">
|
|
<svg id="menu-icon-open" 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="M4 6h16M4 12h16M4 18h16"/></svg>
|
|
<svg id="menu-icon-close" class="w-5 h-5 hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/></svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div id="mobile-menu" class="hidden lg:hidden border-t border-white/20 px-4 pb-4" role="menu">
|
|
<div class="pt-3 space-y-2">
|
|
<a href="{{ path('app_home') }}" class="block px-4 py-3 rounded-lg text-sm font-bold {{ current_route == 'app_home' ? 'bg-[#fabf04] text-gray-900' : 'text-gray-700 hover:bg-white/50' }}" role="menuitem">Accueil</a>
|
|
{% if app.user %}
|
|
<a href="{{ path('app_espace_client_index') }}" class="block px-4 py-3 rounded-lg text-sm font-bold text-gray-700 hover:bg-white/50" role="menuitem">Espace Client</a>
|
|
<a href="{{ path('app_espace_prestataire_index') }}" class="block px-4 py-3 rounded-lg text-sm font-bold text-gray-700 hover:bg-white/50" role="menuitem">Espace Prestataire</a>
|
|
{% else %}
|
|
<a href="{{ path('app_home') }}" class="block px-4 py-3 rounded-lg text-sm font-bold bg-[#fabf04] text-gray-900 text-center" role="menuitem">Connexion</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
<main class="flex-1 {% block main_class %}{% endblock %}">
|
|
{% block body %}{% endblock %}
|
|
</main>
|
|
{% endblock %}
|
|
|
|
<footer class="glass-dark-heavy mt-auto text-white" style="border-radius: 0;">
|
|
<div class="max-w-7xl mx-auto py-12 px-4">
|
|
<div class="flex flex-wrap gap-12 pb-12 mb-12 border-b border-white/10">
|
|
<div class="flex-1 min-w-[280px]">
|
|
<h3 class="text-2xl font-bold mb-4 text-[#fabf04]">Nous Contacter</h3>
|
|
<p class="text-sm text-white/70 leading-relaxed">27 rue Le Serurier<br>02100 Saint-Quentin, France</p>
|
|
<a href="mailto:contact@siteconseil.fr" class="inline-block mt-4 btn-gold px-4 py-2 text-xs font-bold uppercase tracking-wider text-gray-900">
|
|
contact@siteconseil.fr
|
|
</a>
|
|
</div>
|
|
|
|
<div class="flex-1 min-w-[280px]">
|
|
<h3 class="text-2xl font-bold mb-4 text-[#fabf04]">CRM SITECONSEIL</h3>
|
|
<p class="text-sm text-white/60 leading-relaxed">
|
|
CRM SITECONSEIL est la plateforme de relation entre
|
|
SITECONSEIL, ses clients et ses revendeurs.
|
|
Retrouvez vos factures, commandes et devis directement en un seul endroit.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex flex-col sm:flex-row flex-wrap justify-between items-start sm:items-center gap-6">
|
|
<div>
|
|
<p class="font-bold text-sm text-white/80">© {{ "now"|date("Y") }} CRM SITECONSEIL</p>
|
|
<p class="text-[11px] text-white/50 mt-1">Solution proposee par la <a href="https://www.siteconseil.fr" class="text-[#fabf04] hover:underline">SARL SITECONSEIL</a></p>
|
|
<p class="text-[10px] text-white/40 mt-0.5">Siret : 418 664 058</p>
|
|
</div>
|
|
<div class="flex flex-wrap gap-2">
|
|
<a href="{{ path('app_legal_mention_legal') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">Mentions Legales</a>
|
|
<a href="{{ path('app_legal_cookie') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">Cookies</a>
|
|
<a href="{{ path('app_legal_cgu') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">CGU</a>
|
|
<a href="{{ path('app_legal_cgv') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">CGV</a>
|
|
<a href="{{ path('app_legal_rgpd') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">RGPD</a>
|
|
<a href="{{ path('app_legal_hebergement') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">Hebergement</a>
|
|
<a href="{{ path('app_legal_tarif') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">Tarifs</a>
|
|
<a href="{{ path('app_legal_conformite') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">Conformite</a>
|
|
<a href="{{ path('app_status') }}" class="text-[10px] px-3 py-1.5 font-bold uppercase rounded-md bg-white/10 text-white/70 hover:bg-[#fabf04] hover:text-gray-900 transition-all">Status</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<div id="cookie-banner" class="hidden fixed bottom-4 left-4 right-4 z-50 glass-heavy p-4 max-w-4xl mx-auto">
|
|
<div class="flex flex-col sm:flex-row items-center justify-between gap-4">
|
|
<p class="text-sm text-gray-700">
|
|
Ce site utilise des cookies pour mesurer l'audience. <a href="{{ path('app_legal_cookie') }}" class="text-indigo-600 underline hover:text-indigo-800">En savoir plus</a>
|
|
</p>
|
|
<div class="flex gap-2">
|
|
<button id="cookie-refuse" class="btn-glass px-4 py-2 text-xs font-bold uppercase tracking-wider">Refuser</button>
|
|
<button id="cookie-accept" class="btn-gold px-4 py-2 text-xs font-bold uppercase tracking-wider text-gray-900">Accepter</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|