Add admin event actions (online/offline, edit, delete) and fix Meilisearch depends_on

- Add toggle online/offline and delete routes in AdminController
- Add action buttons (En ligne, Modifier, Supprimer) in admin events template
- Bypass requireEventOwnership and requireStripeReady for ROLE_ROOT so admin can edit any event
- Add Meilisearch healthcheck and depends_on in messenger service (prod + dev)
- Add tests for all new admin routes and ROLE_ROOT bypass

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-26 09:04:27 +01:00
parent 531c7da051
commit 23b92f101c
7 changed files with 209 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
<th class="text-[10px] font-black uppercase tracking-widest text-gray-300">Lieu</th>
<th class="text-[10px] font-black uppercase tracking-widest text-gray-300 text-center">Statut</th>
<th class="text-[10px] font-black uppercase tracking-widest text-gray-300 text-center">Secret</th>
<th class="text-[10px] font-black uppercase tracking-widest text-gray-300 text-right">Actions</th>
</tr>
</thead>
<tbody>
@@ -66,6 +67,21 @@
<span class="text-xs text-gray-300">—</span>
{% endif %}
</td>
<td class="text-right">
<div class="flex gap-2 justify-end">
<form method="post" action="{{ path('app_admin_toggle_event_online', {id: event.id}) }}">
{% if event.online %}
<button type="submit" class="admin-btn-sm-yellow text-xs font-black uppercase tracking-widest">Hors ligne</button>
{% else %}
<button type="submit" class="admin-btn-sm-white text-xs font-black uppercase tracking-widest">En ligne</button>
{% endif %}
</form>
<a href="{{ path('app_account_edit_event', {id: event.id}) }}" class="admin-btn-sm-white text-xs font-black uppercase tracking-widest">Modifier</a>
<form method="post" action="{{ path('app_admin_delete_event', {id: event.id}) }}" data-confirm="Supprimer l'evenement &laquo; {{ event.title }} &raquo; ? Cette action est irreversible.">
<button type="submit" class="admin-btn-sm-danger text-xs font-black uppercase tracking-widest">Supprimer</button>
</form>
</div>
</td>
</tr>
{% endfor %}
</tbody>