- Create ContactController with GET/POST handling and MailerService integration - Create contact page template with name, surname, email, message form - Create dedicated email template for contact messages - Update navbar links (desktop + mobile) to point to /contact route - Add ContactControllerTest with 5 tests covering form submission and validation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
1.3 KiB
Twig
25 lines
1.3 KiB
Twig
{% extends 'email/base.html.twig' %}
|
|
|
|
{% block title %}Nouveau message de contact{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>Nouveau message de contact</h2>
|
|
<table style="width:100%;border-collapse:collapse;margin-bottom:24px;">
|
|
<tr>
|
|
<td style="padding:8px 12px;font-weight:700;font-size:14px;color:#18181b;border-bottom:1px solid #e4e4e7;width:120px;">Nom</td>
|
|
<td style="padding:8px 12px;font-size:14px;color:#3f3f46;border-bottom:1px solid #e4e4e7;">{{ name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:8px 12px;font-weight:700;font-size:14px;color:#18181b;border-bottom:1px solid #e4e4e7;">Prenom</td>
|
|
<td style="padding:8px 12px;font-size:14px;color:#3f3f46;border-bottom:1px solid #e4e4e7;">{{ surname }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:8px 12px;font-weight:700;font-size:14px;color:#18181b;border-bottom:1px solid #e4e4e7;">Email</td>
|
|
<td style="padding:8px 12px;font-size:14px;color:#3f3f46;border-bottom:1px solid #e4e4e7;"><a href="mailto:{{ email }}" style="color:#7c3aed;text-decoration:none;">{{ email }}</a></td>
|
|
</tr>
|
|
</table>
|
|
<div style="background:#f4f4f5;border-radius:8px;padding:16px;font-size:15px;line-height:1.6;color:#3f3f46;">
|
|
{{ message|nl2br }}
|
|
</div>
|
|
{% endblock %}
|