feat: Display error message when event does not have any ticket type
Some checks failed
Ruby on Rails Test / rails-test (push) Failing after 2m18s

This commit is contained in:
kbe
2025-09-11 08:35:54 +02:00
parent 28ef801c9a
commit 8ecfc7bf99
10 changed files with 66 additions and 1165 deletions

View File

@@ -1,6 +1,14 @@
<% content_for(:title, "Mes événements") %>
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="min-h-screen max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Breadcrumb -->
<%= render 'components/breadcrumb', crumbs: [
{ name: 'Accueil', path: root_path },
{ name: 'Tableau de bord', path: dashboard_path },
{ name: 'Mes événements' }
] %>
<div class="mb-8 flex items-center justify-between">
<div>
<h1 class="text-3xl font-bold text-gray-900 mb-2">Mes événements</h1>
@@ -66,7 +74,7 @@
Complet
</span>
<% end %>
<% if event.featured? %>
<span class="inline-flex px-2 py-1 text-xs font-semibold rounded-full bg-yellow-100 text-yellow-800 ml-1">
<i data-lucide="star" class="w-3 h-3 mr-1"></i>
@@ -103,7 +111,7 @@
<i data-lucide="download" class="w-4 h-4"></i>
<% end %>
<% end %>
<%= button_to promoter_event_path(event), method: :delete,
<%= button_to promoter_event_path(event), method: :delete,
data: { confirm: "Êtes-vous sûr de vouloir supprimer cet événement ?" },
class: "text-gray-400 hover:text-red-600 transition-colors", title: "Supprimer" do %>
<i data-lucide="trash-2" class="w-4 h-4"></i>
@@ -133,4 +141,4 @@
<% end %>
</div>
<% end %>
</div>
</div>