clubmanager/templates/components/close_shift_button.rs.html

8 lines
179 B
HTML
Raw Normal View History

2023-09-27 00:00:01 +00:00
@use cm_lib::models::Shift;
2023-09-30 21:51:11 +00:00
@(open_shift: &Shift)
2023-09-27 00:00:01 +00:00
2023-09-30 21:51:11 +00:00
<button hx-post="/api/shifts/@open_shift.id/close" hx-swap="outerHTML" hx-target="body" type="button">
Close Shift
</button>