fix: add th headers and role=presentation to PDF and legal tables

- Add thead/th to commissions table in tarif.html.twig
- Add th headers to contrat_revendeur parties table
- Add role=presentation to PDF layout tables (info-grid, verify-box, signatures)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-01 19:50:56 +02:00
parent 242f8337e1
commit a76e96fb21
5 changed files with 17 additions and 11 deletions

View File

@@ -202,6 +202,12 @@
<span class="font-black uppercase text-xs tracking-widest">Commissions</span>
</div>
<table class="w-full text-sm">
<thead>
<tr>
<th class="px-4 py-2 text-left font-black uppercase text-xs tracking-widest">Description</th>
<th class="px-4 py-2 text-right font-black uppercase text-xs tracking-widest">Taux</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-gray-200">
<td class="px-4 py-3">

View File

@@ -42,20 +42,20 @@
<table class="parties">
<tr>
<td class="left">
<th class="left" style="text-align: left; font-weight: normal;">
<span class="label">Le Prestataire</span>
<strong>Association E-Cosplay</strong><br>
RNA : W022006988 — SIREN : 943121517<br>
42 rue de Saint-Quentin, 02800 Beautor, France<br>
contact@e-cosplay.fr
</td>
<td>
</th>
<th style="text-align: left; font-weight: normal;">
<span class="label">Le Revendeur</span>
<strong>{{ revendeur.raisonSociale ?? revendeur.user.fullName }}</strong><br>
{% if revendeur.siret %}SIRET : {{ revendeur.siret }}<br>{% endif %}
{% if revendeur.address %}{{ revendeur.address }}{% if revendeur.zipCode %}, {{ revendeur.zipCode }}{% endif %}{% if revendeur.city %} {{ revendeur.city }}{% endif %}<br>{% endif %}
{{ revendeur.email ?? revendeur.user.email }}
</td>
</th>
</tr>
</table>
@@ -184,7 +184,7 @@
<p style="margin-top: 14px; font-weight: 700;">Fait en deux exemplaires, a Beautor, le {{ date|date('d/m/Y') }}.</p>
<table class="signatures">
<table class="signatures" role="presentation">
<tr>
<td>
<span class="sig-label">Pour l'Association E-Cosplay</span>

View File

@@ -48,7 +48,7 @@
<span class="doc-type">Droit d'acces</span>
<h1>Donnees personnelles</h1>
<div class="subtitle">RGPD &mdash; Article 15</div>
<table class="info-grid">
<table class="info-grid" role="presentation">
<tr>
<td class="info-cell" style="width: 25%;"><span class="info-label">Reference</span><span class="info-value">{{ attestation.reference }}</span></td>
<td class="info-cell" style="width: 25%;"><span class="info-label">Date</span><span class="info-value">{{ date|date('d/m/Y a H:i') }}</span></td>
@@ -75,7 +75,7 @@
{% endfor %}
<div class="verify-box">
<table>
<table role="presentation">
<tr>
<td class="verify-qr"><img src="{{ qrcode }}" alt="QR Code"></td>
<td class="verify-info">

View File

@@ -46,7 +46,7 @@
<span class="doc-type">Suppression definitive</span>
<h1>Attestation de suppression des donnees</h1>
<div class="subtitle">RGPD &mdash; Article 17</div>
<table class="info-grid">
<table class="info-grid" role="presentation">
<tr>
<td class="info-cell" style="width: 33%;"><span class="info-label">Reference</span><span class="info-value">{{ attestation.reference }}</span></td>
<td class="info-cell" style="width: 33%;"><span class="info-label">Date</span><span class="info-value">{{ date|date('d/m/Y a H:i') }}</span></td>
@@ -64,7 +64,7 @@
</div>
<div class="warning">Cette suppression est irreversible. Aucune donnee relative a cette adresse IP ne subsiste dans nos bases de donnees.</div>
<div class="verify-box">
<table>
<table role="presentation">
<tr>
<td class="verify-qr"><img src="{{ qrcode }}" alt="QR Code"></td>
<td class="verify-info">

View File

@@ -45,7 +45,7 @@
<span class="doc-type">Document officiel</span>
<h1>Attestation d'absence de donnees</h1>
<div class="subtitle">RGPD &mdash; Article 15</div>
<table class="info-grid">
<table class="info-grid" role="presentation">
<tr>
<td class="info-cell" style="width: 33%;"><span class="info-label">Reference</span><span class="info-value">{{ attestation.reference }}</span></td>
<td class="info-cell" style="width: 33%;"><span class="info-label">Date</span><span class="info-value">{{ date|date('d/m/Y a H:i') }}</span></td>
@@ -63,7 +63,7 @@
<p>Aucune donnee personnelle (identifiants de session, evenements de navigation, informations techniques) n'est stockee dans nos bases de donnees pour cette adresse IP.</p>
</div>
<div class="verify-box">
<table>
<table role="presentation">
<tr>
<td class="verify-qr"><img src="{{ qrcode }}" alt="QR Code"></td>
<td class="verify-info">