Notify admin when organizer accepts or refuses invitation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-22 22:33:04 +01:00
parent 80b48b9dbf
commit 36db3fc25d
2 changed files with 11 additions and 1 deletions

View File

@@ -16,7 +16,7 @@
- [ ] Bloquer l'envoi d'invitations (billets) si Stripe n'est pas validé sur le compte orga
- [ ] Après inscription via invitation, connecter automatiquement l'utilisateur
- [ ] Empêcher la double inscription (même email) — déjà vérifié mais ajouter un message clair
- [ ] Ajouter une notification admin quand un orga accepte/refuse une invitation
- [x] Ajouter une notification admin quand un orga accepte/refuse une invitation
### Paiements & Finances
- [x] Ajouter le dashboard financier pour l'orga (encaissé, en attente, remboursé, com E-Ticket, com Stripe, net perçu)

View File

@@ -329,6 +329,16 @@ class HomeController extends AbstractController
);
}
$statusLabel = 'accept' === $action ? 'acceptee' : 'refusee';
$mailerService->sendEmail(
'contact@e-cosplay.fr',
'Invitation '.$statusLabel.' - '.$invitation->getCompanyName(),
'<p>L\'invitation pour <strong>'.$invitation->getCompanyName().'</strong> ('.$invitation->getEmail().') a ete <strong>'.$statusLabel.'</strong> le '.$invitation->getRespondedAt()->format('d/m/Y H:i').'.</p>',
'E-Ticket <contact@e-cosplay.fr>',
null,
false,
);
return $this->render('home/invitation_response.html.twig', [
'invitation' => $invitation,
'accepted' => 'accept' === $action,