2023-11-04 09:11:30 +00:00
|
|
|
@use super::shift_button_html;
|
|
|
|
@use cm_lib::models::Shift;
|
|
|
|
|
|
|
|
@(open_shift: Option<Shift>)
|
|
|
|
|
2023-11-15 23:18:00 +00:00
|
|
|
<main class="grid grid-rows-6 grid-cols-3 grid-flow-col h-full">
|
|
|
|
<div class="flex justify-center items-center">
|
2023-11-04 09:11:30 +00:00
|
|
|
@:shift_button_html(open_shift.as_ref())
|
|
|
|
</div>
|
|
|
|
@if open_shift.is_some() {
|
2023-11-15 23:18:00 +00:00
|
|
|
<div hx-boost="true" class="flex justify-center items-center">
|
2023-11-17 22:03:18 +00:00
|
|
|
<a href="/shifts/@open_shift.unwrap().id/drinks"
|
|
|
|
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 ">
|
|
|
|
<button type="button">Sell Drinks</button>
|
2023-11-04 09:11:30 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2023-11-17 22:18:09 +00:00
|
|
|
|
|
|
|
<div hx-boost="true" class="flex justify-center items-center">
|
|
|
|
<a href="/shows"
|
|
|
|
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 ">
|
|
|
|
<button type="button">Sell Shows</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
2023-11-04 09:11:30 +00:00
|
|
|
}
|
2023-11-15 23:18:00 +00:00
|
|
|
<div hx-boost="true" class="flex justify-center items-center">
|
2023-11-17 22:03:18 +00:00
|
|
|
<a href="/management"
|
|
|
|
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 ">
|
2023-11-05 15:03:15 +00:00
|
|
|
<button type="button">Management</button>
|
2023-11-05 14:44:44 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2023-11-04 09:11:30 +00:00
|
|
|
</main>
|