diff --git a/src/Controller/JoinController.php b/src/Controller/JoinController.php
index c1dc3f2..d9e32ea 100644
--- a/src/Controller/JoinController.php
+++ b/src/Controller/JoinController.php
@@ -30,6 +30,13 @@ use Twig\Environment;
class JoinController extends AbstractController
{
+ #[Route(path: '/join/confirmed', name: 'app_recruit_confirmed', options: ['sitemap' => false], methods: ['GET','POST'])]
+ public function joinConfirmed(Request $request,EntityManagerInterface $entityManager,Mailer $mailer,KernelInterface $kernel): Response
+ {
+ return $this->render('join/confirmed.twig', [
+ 'no_index' => true
+ ]);
+ }
#[Route(path: '/join', name: 'app_recruit', options: ['sitemap' => false], methods: ['GET','POST'])]
public function join(Request $request,EntityManagerInterface $entityManager,Mailer $mailer,KernelInterface $kernel): Response
@@ -66,13 +73,11 @@ class JoinController extends AbstractController
$mailer->send($j->getEmail(),
$j->getSurname()." ".$j->getName(),
"[E-Cosplay] - Confirmation de votre candidature",
- 'condidat/confirm.twig',
+ 'candidat/confirm.twig',
['joint'=>$j],
[new DataPart($content,'candidat.pdf','application/pdf')]
);
- //send mail to contact@e-cosplay.fr
- //send mail to candidat
-
+ return $this->redirectToRoute('app_recruit_comfirmed');
}
return $this->render('join.twig',[
'form' => $form->createView(),
diff --git a/templates/join/confirmed.twig b/templates/join/confirmed.twig
new file mode 100644
index 0000000..b31ed2e
--- /dev/null
+++ b/templates/join/confirmed.twig
@@ -0,0 +1,44 @@
+{% extends 'base.twig' %}
+
+{% block title %}{{'confirmation.title'|trans}}{% endblock %}
+{% block canonical_url %} {% endblock %}
+
+{% block body %}
+
+
+
+ {# --- CARTE DE CONFIRMATION STYLE COMICS --- #}
+
+
+ {# Icône de succès #}
+
🚀
+
+
+ {{ 'confirmation.header'|trans }}
+
+
+
+
+
+ {{ 'confirmation.message'|trans }}
+
+
+ {# Bloc Délai #}
+
+
+ {{ 'confirmation.delay.label'|trans }}
+
+
+ {{ 'confirmation.delay.value'|trans }}
+
+
+
+ {# Bouton retour #}
+
+ {{ 'confirmation.back_home'|trans }}
+
+
+
+
+
+{% endblock %}
diff --git a/templates/mails/candidat/confirm.twig b/templates/mails/candidat/confirm.twig
new file mode 100644
index 0000000..eca8f6c
--- /dev/null
+++ b/templates/mails/candidat/confirm.twig
@@ -0,0 +1,40 @@
+{% extends 'mails/base.twig' %}
+
+{% block subject %}
+ Confirmation de réception - Ta candidature chez E-Cosplay
+{% endblock %}
+
+{% block content %}
+
+
+
+ Merci {{ join.name }} !
+
+
+ Nous avons bien reçu ta candidature pour rejoindre l'association E-Cosplay .
+
+
+
+
+
+
+
+
+ Ton dossier est désormais entre les mains de notre équipe. Nous l'examinons avec attention et nous reviendrons vers toi sous peu par email ou via Discord pour la suite des événements.
+
+
+ En attendant, n'hésite pas à nous suivre sur nos réseaux sociaux pour découvrir nos dernières activités !
+
+
+
+
+
+
+
+ E-Cosplay Association loi 1901
+ 42 rue de saint-quentin, 02800 Beautor
+ Ceci est un message automatique, merci de ne pas y répondre directement.
+
+
+
+{% endblock %}
diff --git a/templates/mails/candidat/new.twig b/templates/mails/candidat/new.twig
new file mode 100644
index 0000000..42faca2
--- /dev/null
+++ b/templates/mails/candidat/new.twig
@@ -0,0 +1,58 @@
+{% extends 'mails/base.twig' %}
+
+{% block subject %}
+ Nouvelle candidature
+{% endblock %}
+
+
+{% block content %}
+
+
+
+ Nouvelle Candidature Reçue !
+
+
+ Bonjour l'équipe,
+ Un nouveau formulaire d'adhésion vient d'être soumis sur le site E-Cosplay . Voici les détails du candidat :
+
+
+
+
+
+
+
+ Candidat : {{ join.surname|upper }} {{ join.name }}
+
+
+ Email : {{ join.email }}
+
+
+ Rôles :
+ {% if join.role is iterable %}
+ {{ join.role|join(', ') }}
+ {% else %}
+ {{ join.role }}
+ {% endif %}
+
+
+ Date : {{ join.createAt|date('d/m/Y H:i') }}
+
+
+
+
+
+
+
+ Vous pouvez également retrouver le PDF généré en pièce jointe de ce mail.
+
+
+
+
+
+
+
+ © {{ "now"|date("Y") }} E-Cosplay Association - 42 rue de saint-quentin 02800 Beautor
+
+
+
+{% endblock %}
diff --git a/templates/txt-mails/candidat/confirm.twig b/templates/txt-mails/candidat/confirm.twig
new file mode 100644
index 0000000..459f4cd
--- /dev/null
+++ b/templates/txt-mails/candidat/confirm.twig
@@ -0,0 +1,26 @@
+{% extends 'mails/base.twig' %}
+
+{% block subject %}
+ Confirmation de réception - Ta candidature chez E-Cosplay
+{% endblock %}
+
+{% block content %}
+ BONJOUR {{ join.name|upper }},
+
+ C'est confirmé ! Nous avons bien reçu ta candidature pour rejoindre l'association E-Cosplay.
+
+ Toute l'équipe te remercie de l'intérêt que tu portes à notre communauté. Ton dossier est désormais entre les mains de nos responsables qui l'examineront avec attention.
+
+ LA SUITE DES ÉVÉNEMENTS :
+ -------------------------
+ Nous reviendrons vers toi sous peu (généralement sous quelques jours) pour te donner une réponse ou convenir d'un petit échange, soit par email, soit directement sur Discord ({{ join.discordAccount|default('via le compte fourni') }}).
+
+ À très bientôt,
+
+ L'équipe E-Cosplay.
+
+ ---
+ E-Cosplay Association loi 1901
+ 42 rue de saint-quentin, 02800 Beautor
+ Ceci est un message automatique, merci de ne pas y répondre directement.
+{% endblock %}
diff --git a/templates/txt-mails/candidat/new.twig b/templates/txt-mails/candidat/new.twig
new file mode 100644
index 0000000..a7dafba
--- /dev/null
+++ b/templates/txt-mails/candidat/new.twig
@@ -0,0 +1,37 @@
+{% extends 'mails/base.twig' %}
+
+{% block subject %}
+ Nouvelle candidature : {{ join.name }} {{ join.surname }}
+{% endblock %}
+
+{% block content %}
+ NOUVELLE CANDIDATURE REÇUE
+ ==========================
+
+ Bonjour l'équipe,
+
+ Une nouvelle candidature a été déposée sur le site E-Cosplay.
+
+ DÉTAILS DU CANDIDAT :
+ ---------------------
+ - Nom complet : {{ join.surname|upper }} {{ join.name }}
+ - Email : {{ join.email }}
+ - Téléphone : {{ join.phone }}
+ - Rôles souhaités : {% if join.role is iterable %}{{ join.role|join(', ') }}{% else %}{{ join.role }}{% endif %}
+ - Date de dépôt : {{ join.createAt|date('d/m/Y à H:i') }}
+
+ PRÉSENTATION :
+ --------------
+ {{ join.who|default('Aucune présentation fournie.') }}
+
+ COORDONNÉES NUMÉRIQUES :
+ ------------------------
+ - Discord : {{ join.discordAccount|default('Non renseigné') }}
+ - Instagram : {{ join.instaLink|default('N/A') }}
+
+ Vous pouvez consulter cette fiche directement dans l'administration
+
+ ---
+ Ceci est un message automatique envoyé par le site E-Cosplay.
+ © {{ "now"|date("Y") }} E-Cosplay Association
+{% endblock %}
diff --git a/translations/messages.cn.yaml b/translations/messages.cn.yaml
index eceac49..2839e0e 100644
--- a/translations/messages.cn.yaml
+++ b/translations/messages.cn.yaml
@@ -891,3 +891,12 @@ form:
form_feedback:
success: "您的申请已成功提交!委员会将尽快进行审核。"
error: "发生错误,请检查您的信息。"
+
+confirmation:
+ title: "申请已收到! - E-Cosplay"
+ header: "收到申请!"
+ message: "您的入会申请已正式提交给委员会。我们将认真审核您的申请。"
+ delay:
+ label: "预计回复时间"
+ value: "7 到 10 个工作日"
+ back_home: "返回首页"
diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml
index 54e3264..522f039 100644
--- a/translations/messages.en.yaml
+++ b/translations/messages.en.yaml
@@ -960,3 +960,13 @@ form:
form_feedback:
success: "Your application has been successfully submitted! The board will review it shortly."
error: "An error occurred. Please check your information."
+
+confirmation:
+ title: "Application Received! - E-Cosplay"
+ header: "Message Received!"
+ message: "Your membership application is officially in the hands of the board. We will review it carefully."
+ delay:
+ label: "Estimated response time"
+ value: "7 to 10 business days"
+ back_home: "Back to Home"
+
diff --git a/translations/messages.fr.yaml b/translations/messages.fr.yaml
index 9864a91..e209856 100644
--- a/translations/messages.fr.yaml
+++ b/translations/messages.fr.yaml
@@ -962,3 +962,12 @@ form_feedback:
success: "Votre candidature a été envoyée avec succès ! Le bureau l'étudiera prochainement."
error: "Une erreur est survenue. Veuillez vérifier vos informations."
join_at: 'messages'
+
+confirmation:
+ title: "Candidature reçue ! - E-Cosplay"
+ header: "Bien reçu, Major !"
+ message: "Ta demande d'adhésion est officiellement entre les mains du bureau. Nous allons l'étudier avec attention."
+ delay:
+ label: "Délai de réponse estimé"
+ value: "7 à 10 jours ouvrés"
+ back_home: "Retour à l'accueil"