22 lines
638 B
HTML
22 lines
638 B
HTML
@use super::shift_button_html;
|
|
@use cm_lib::models::Shift;
|
|
|
|
@(open_shift: Option<Shift>)
|
|
|
|
<main class="grid grid-rows-6 grid-cols-3 grid-flow-col h-full">
|
|
<div class="flex justify-center items-center">
|
|
@:shift_button_html(open_shift.as_ref())
|
|
</div>
|
|
@if open_shift.is_some() {
|
|
<div hx-boost="true" class="flex justify-center items-center">
|
|
<a href="/shifts/@open_shift.unwrap().id/drinks">
|
|
<button type="button">Drinks</button>
|
|
</a>
|
|
</div>
|
|
}
|
|
<div hx-boost="true" class="flex justify-center items-center">
|
|
<a href="/management">
|
|
<button type="button">Management</button>
|
|
</a>
|
|
</div>
|
|
</main>
|