23 lines
457 B
HTML
23 lines
457 B
HTML
@use super::shift_button_html;
|
|
@use cm_lib::models::Shift;
|
|
|
|
@(open_shift: Option<Shift>)
|
|
|
|
<main>
|
|
<div>
|
|
@:shift_button_html(open_shift.as_ref())
|
|
</div>
|
|
@if open_shift.is_some() {
|
|
<div hx-boost="true">
|
|
<a href="/shifts/@open_shift.unwrap().id/drinks">
|
|
<button type="button">Drinks</button>
|
|
</a>
|
|
</div>
|
|
}
|
|
<div hx-boost="true">
|
|
<a href="/management">
|
|
<button type="button">Management</button>
|
|
</a>
|
|
</div>
|
|
</main>
|