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>
90 lines
5.2 KiB
Twig
90 lines
5.2 KiB
Twig
{% extends 'legal/_layout.html.twig' %}
|
|
|
|
{% block title %}Verification attestation {{ attestation.reference }} - SARL SITECONSEIL{% endblock %}
|
|
{% block description %}Verification de l'attestation RGPD {{ attestation.reference }}.{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="page-container">
|
|
<h1 class="text-2xl font-bold heading-page mb-8">Verification d'attestation</h1>
|
|
|
|
<div class="flex flex-col gap-8">
|
|
|
|
{% if valid %}
|
|
<div class="p-6 border-4 border-green-600 bg-green-50">
|
|
<div class="flex items-center gap-3 mb-2">
|
|
<svg class="w-8 h-8 text-green-600 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5 13l4 4L19 7"/></svg>
|
|
<span class="text-xl font-bold uppercase text-green-800">Attestation valide</span>
|
|
</div>
|
|
<p class="text-sm text-green-700 font-bold">La signature HMAC-SHA256 de ce document a ete verifiee avec succes. Ce document est authentique.</p>
|
|
</div>
|
|
{% else %}
|
|
<div class="p-6 border-4 border-red-600 bg-red-50">
|
|
<div class="flex items-center gap-3 mb-2">
|
|
<svg class="w-8 h-8 text-red-600 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M6 18L18 6M6 6l12 12"/></svg>
|
|
<span class="text-xl font-bold uppercase text-red-800">Signature invalide</span>
|
|
</div>
|
|
<p class="text-sm text-red-700 font-bold">La signature de ce document n'a pas pu etre verifiee. Ce document a peut-etre ete modifie.</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="glass">
|
|
<div class="glass-dark text-white px-6 py-3">
|
|
<span class="text-xs font-bold uppercase tracking-wider">Details de l'attestation</span>
|
|
</div>
|
|
<div class="p-6">
|
|
<table class="w-full text-sm">
|
|
<tr class="border-b border-white/20">
|
|
<th scope="row" class="py-3 pr-4 font-bold uppercase text-xs text-gray-500 w-1/3 text-left">Reference</th>
|
|
<td class="py-3 font-bold">{{ attestation.reference }}</td>
|
|
</tr>
|
|
<tr class="border-b border-white/20">
|
|
<th scope="row" class="py-3 pr-4 font-bold uppercase text-xs text-gray-500 text-left">Type</th>
|
|
<td class="py-3 font-bold">
|
|
{% if attestation.type == 'access' %}
|
|
<span class="px-2 py-1 bg-indigo-100 text-indigo-800 text-xs font-bold uppercase">Droit d'acces</span>
|
|
{% elseif attestation.type == 'deletion' %}
|
|
<span class="px-2 py-1 bg-red-100 text-red-800 text-xs font-bold uppercase">Suppression</span>
|
|
{% else %}
|
|
<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs font-bold uppercase">Absence de donnees</span>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<tr class="border-b border-white/20">
|
|
<th scope="row" class="py-3 pr-4 font-bold uppercase text-xs text-gray-500 text-left">Date</th>
|
|
<td class="py-3 font-bold">{{ attestation.createdAt|date('d/m/Y a H:i:s') }}</td>
|
|
</tr>
|
|
<tr class="border-b border-white/20">
|
|
<th scope="row" class="py-3 pr-4 font-bold uppercase text-xs text-gray-500 text-left">Adresse IP</th>
|
|
<td class="py-3 font-bold font-mono">{{ attestation.ip }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row" class="py-3 pr-4 font-bold uppercase text-xs text-gray-500 text-left">Email</th>
|
|
<td class="py-3 font-bold">{{ attestation.email }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
{% if attestation.pdfFileSigned or attestation.pdfFileCertificate %}
|
|
<div class="flex flex-wrap gap-3">
|
|
{% if attestation.pdfFileSigned %}
|
|
<a href="{{ path('app_attestation_download', {reference: attestation.reference}) }}" class="px-4 py-2 btn-gold font-bold uppercase text-xs tracking-wider">
|
|
Telecharger l'attestation signee
|
|
</a>
|
|
{% endif %}
|
|
{% if attestation.pdfFileCertificate %}
|
|
<a href="{{ path('app_attestation_audit', {reference: attestation.reference}) }}" class="px-4 py-2 glass font-bold uppercase text-xs tracking-widest hover:bg-gray-900 hover:text-white transition-all">
|
|
Telecharger l'audit de signature
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="border-2 border-gray-200 bg-gray-50 p-4">
|
|
<p class="text-xs font-bold uppercase tracking-wider text-gray-400 mb-2">Signature HMAC-SHA256</p>
|
|
<p class="text-xs font-mono text-gray-500 break-all">{{ attestation.hmac }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|