<% content_for(:title, "Mes événements") %>

Mes événements

Gérez tous vos événements depuis cette interface

<%= link_to new_promoter_event_path, class: "inline-flex items-center px-6 py-3 bg-black text-white font-medium rounded-lg hover:bg-gray-800 transition-colors duration-200" do %> Créer un événement <% end %>
<% if @events.any? %>
<% @events.each do |event| %> <% end %>
Événement Statut Date Lieu Actions
<%= link_to event.name, promoter_event_path(event), class: "hover:text-purple-600 transition-colors" %>
<%= event.description.truncate(60) %>
<% case event.state %> <% when "draft" %> Brouillon <% when "published" %> Publié <% when "canceled" %> Annulé <% when "sold_out" %> Complet <% end %> <% if event.featured? %> À la une <% end %> <% if event.start_time %>
<%= event.start_time.strftime("%d/%m/%Y") %>
<%= event.start_time.strftime("%H:%M") %>
<% else %> Date non définie <% end %>
<%= event.venue_name %>
<%= event.venue_address %>
<%= link_to promoter_event_path(event), class: "text-gray-400 hover:text-gray-600 transition-colors", title: "Voir" do %> <% end %> <%= link_to edit_promoter_event_path(event), class: "text-gray-400 hover:text-blue-600 transition-colors", title: "Modifier" do %> <% end %> <% if event.draft? %> <%= button_to publish_promoter_event_path(event), method: :patch, class: "text-gray-400 hover:text-green-600 transition-colors", title: "Publier" do %> <% end %> <% elsif event.published? %> <%= button_to unpublish_promoter_event_path(event), method: :patch, class: "text-gray-400 hover:text-yellow-600 transition-colors", title: "Dépublier" do %> <% end %> <% end %> <%= 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 %> <% end %>
<%= paginate @events if respond_to?(:paginate) %>
<% else %>

Aucun événement

Vous n'avez pas encore créé d'événement. Commencez dès maintenant !

<%= link_to new_promoter_event_path, class: "inline-flex items-center px-6 py-3 bg-black text-white font-medium rounded-lg hover:bg-gray-800 transition-colors duration-200" do %> Créer mon premier événement <% end %>
<% end %>