2024-08-11 14:18:36 +02:00
|
|
|
<div class="w-full" style="height: 100%">
|
2024-08-06 14:16:40 +02:00
|
|
|
<% if notice.present? %>
|
|
|
|
|
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% content_for :title, "Reservations" %>
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-between items-center">
|
|
|
|
|
<h1 class="font-bold text-4xl">Reservations</h1>
|
|
|
|
|
<%= link_to "New reservation", new_reservation_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-08-24 07:06:09 +02:00
|
|
|
<div data-controller="main-calendar" class="min-w-full" style="height: 90vh;" >
|
|
|
|
|
<%= tag.div nil, data: {reservations: @reservations.to_json}, id: "main-calendar"%>
|
2024-08-06 14:16:40 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|