Files
e-cosplay/templates/artemis/newsletter/template.twig
Serreau Jovann 5cf3da1488 ```
 feat(newsletter): Ajoute l'éditeur de template d'email avec Preact

Crée un nouvel éditeur de template d'email en utilisant Preact et
react-email-editor, et l'intègre au contrôleur et aux vues.
```
2025-08-02 10:45:16 +02:00

35 lines
1.4 KiB
Twig

{% extends 'artemis/base.twig' %}
{% block title %}Listes de contacts{% endblock %}
{% block content %}
<div class="flex justify-between items-center mb-6">
<h2 class="text-3xl font-semibold text-gray-800 dark:text-gray-200">Listes des templates</h2>
<div>
<a href="{{ path('artemis_newsletter_contact_add') }}" class="px-4 py-2 bg-blue-600 text-white font-medium rounded-md shadow-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900">
+ Crée un templates
</a>
</div>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6">
{% for template in templates %}
<a href="" class="card-contact mt-6">
<div class="card-body flex items-center">
<div class="px-3 py-2 rounded bg-indigo-600 text-white mr-3">
<i class="fad fa-user"></i>
</div>
<div class="flex flex-col">
<h1 class="font-semibold">{{ template.name }}</h1>
</div>
</div>
</a>
{% else %}
<div class="col-span-4 text-center text-gray-400 dark:text-gray-500 font-bold">Aucun template trouvée.</div>
{% endfor %}
</div>
{% endblock %}