✨ feat(admin): Ajoute gestion des administrateurs avec création et suppression.
Ajoute la gestion complète des administrateurs : création, suppression,
logs d'audit, notifications mail (création/suppression) et désinscription.
```
64 lines
3.0 KiB
Twig
64 lines
3.0 KiB
Twig
Voici le code MJML complet pour tes notifications d'administration. J'ai conçu un template élégant, responsive et aux couleurs de Ludikevent, incluant les deux variantes : la création (avec bouton d'activation) et la suppression.
|
|
|
|
1. Template : mails/notification/admin_created.twig (MJML)
|
|
Ce template utilise les variables passées par ton service AdminEvent (datas.setup_url, datas.admin, etc.).
|
|
|
|
XML
|
|
|
|
<mjml>
|
|
<mj-head>
|
|
<mj-title>[Intranet Ludikevent] Activation de compte</mj-title>
|
|
<mj-attributes>
|
|
<mj-all font-family="Arial, sans-serif" />
|
|
<mj-text font-size="16px" color="#333333" line-height="24px" />
|
|
<mj-section background-color="#ffffff" padding="20px" />
|
|
<mj-button background-color="#007bff" color="white" font-size="16px" font-weight="bold" border-radius="5px" cursor="pointer" />
|
|
</mj-attributes>
|
|
<mj-style>
|
|
.header-bg { background-color: #1a1a1a !important; }
|
|
.footer-text { font-size: 12px !important; color: #888888 !important; }
|
|
</mj-style>
|
|
</mj-head>
|
|
<mj-body background-color="#f4f4f4">
|
|
|
|
<mj-section css-class="header-bg" padding="10px">
|
|
<mj-column>
|
|
<mj-text align="center" color="#ffffff" font-size="20px" font-weight="bold">
|
|
LUDIKEVENT INTRANET
|
|
</mj-text>
|
|
</mj-column>
|
|
</mj-section>
|
|
|
|
<mj-section>
|
|
<mj-column>
|
|
<mj-text font-size="22px" font-weight="bold" color="#007bff">
|
|
Bienvenue, {{ datas.admin.firstName }} !
|
|
</mj-text>
|
|
<mj-text>
|
|
Un accès administrateur vient d'être créé pour vous sur l'Intranet Ludikevent par <strong>{{ datas.creator.firstName }} {{ datas.creator.name }}</strong>.
|
|
</mj-text>
|
|
<mj-text>
|
|
Pour finaliser la configuration de votre compte et choisir votre mot de passe, veuillez cliquer sur le bouton ci-dessous :
|
|
</mj-text>
|
|
<mj-button href="{{ datas.setup_url }}">
|
|
ACTIVER MON COMPTE
|
|
</mj-button>
|
|
<mj-text font-size="14px" color="#666666">
|
|
Ce lien est valable pendant 24 heures (expire le {{ datas.expires_at|date('d/m/Y à H:i') }}).
|
|
</mj-text>
|
|
<mj-divider border-width="1px" border-color="#eeeeee" />
|
|
<mj-text font-size="14px">
|
|
Si vous n'êtes pas à l'origine de cette demande, veuillez ignorer cet email.
|
|
</mj-text>
|
|
</mj-column>
|
|
</mj-section>
|
|
|
|
<mj-section background-color="#f4f4f4">
|
|
<mj-column>
|
|
<mj-text align="center" css-class="footer-text">
|
|
© {{ "now"|date("Y") }} Ludikevent - Système de notification automatique<br/>
|
|
Ne pas répondre à cet email.
|
|
</mj-text>
|
|
</mj-column>
|
|
</mj-section>
|