Add contact email

This commit is contained in:
Arnaud Delcasse
2026-01-06 07:49:58 +01:00
parent 3f209fe461
commit 11ddd89133
3 changed files with 29 additions and 5 deletions

View File

@@ -475,6 +475,12 @@ emails:
files: files:
- emails/layout.html - emails/layout.html
- emails/onboarding/support_emailing.html - emails/onboarding/support_emailing.html
contact:
request:
subject: PARCOURSMOB - Nouveau message de contact
files:
- emails/layout.html
- emails/contact/request.html
delete_subscriber: delete_subscriber:
request: request:
subject: PARCOURSMOB - Un bénéficiaire a été retiré d'un dispositif subject: PARCOURSMOB - Un bénéficiaire a été retiré d'un dispositif

View File

@@ -0,0 +1,17 @@
{{define "content"}}
<h2>Nouveau message de contact</h2>
<table style="width: 100%; border-collapse: collapse; margin-top: 20px;">
{{range $key, $value := .fields}}
<tr>
<td style="padding: 10px; border-bottom: 1px solid #eee; font-weight: bold; vertical-align: top; width: 30%;">{{$key}}</td>
<td style="padding: 10px; border-bottom: 1px solid #eee;">{{$value}}</td>
</tr>
{{end}}
</table>
<hr style="margin-top: 30px; border: none; border-top: 1px solid #ccc;" />
<p style="font-size: 12px; color: #666;">
Ce message a été envoyé via le formulaire de contact du site public.
</p>
{{end}}

View File

@@ -6,9 +6,9 @@
font-family: "Bitter"; font-family: "Bitter";
font-style: normal; font-style: normal;
src: url("https://coopgo.fr/fonts/Bitter-Regular.woff") format("woff"); } src: url("https://coopgo.fr/fonts/Bitter-Regular.woff") format("woff"); }
html { html {
font-family: Bitter, serif; font-family: Bitter, serif;
} }
.bg-co-blue { .bg-co-blue {
@@ -20,8 +20,9 @@
text-align: center; text-align: center;
} }
.w-96 { .logo {
width: 24rem/* 384px */; max-width: 300px;
height: auto;
} }
.p-10 { .p-10 {
@@ -52,7 +53,7 @@
</head> </head>
<body> <body>
<div class="bg-co-blue text-center text-white p-10"> <div class="bg-co-blue text-center text-white p-10">
<img class="w-96" src="https://coopgo.fr/images/coopgo-logo-bluegreen.svg" alt="PARCOURSMOB" /> <img class="logo" src="{{.baseUrl}}/public/images/mobicoop-solidaire.png" alt="Mobicoop solidaire" />
</div> </div>
<div class="max-w-3xl m-auto"> <div class="max-w-3xl m-auto">
{{template "content" .}} {{template "content" .}}