2023-09-21 17:44:53 +00:00
|
|
|
@use super::base_html;
|
2023-09-27 00:11:36 +00:00
|
|
|
@use super::components::shift_button_html;
|
2023-09-26 09:18:12 +00:00
|
|
|
@use cm_lib::models::Shift;
|
2023-09-21 17:44:53 +00:00
|
|
|
|
2023-09-26 09:18:12 +00:00
|
|
|
@(open_shift: Option<Shift>)
|
2023-09-21 17:44:53 +00:00
|
|
|
|
|
|
|
@:base_html({
|
|
|
|
|
2023-09-26 09:18:12 +00:00
|
|
|
<main>
|
|
|
|
<div>
|
2023-09-30 21:51:11 +00:00
|
|
|
@:shift_button_html(open_shift.as_ref())
|
2023-09-26 09:18:12 +00:00
|
|
|
</div>
|
2023-09-30 21:51:11 +00:00
|
|
|
@if open_shift.is_some() {
|
2023-10-24 13:17:34 +00:00
|
|
|
<div hx-boost="true">
|
|
|
|
<a href="/shifts/@open_shift.unwrap().id/drinks">
|
|
|
|
<button>Drinks</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
2023-09-30 21:51:11 +00:00
|
|
|
}
|
2023-10-24 13:17:34 +00:00
|
|
|
<div hx-boost="true">
|
|
|
|
<a href="/shift_reports">
|
|
|
|
<button>Shift Reports</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
2023-09-26 09:18:12 +00:00
|
|
|
</main>
|
2023-09-21 17:44:53 +00:00
|
|
|
|
|
|
|
})
|