clubmanager/templates/components/close_shift_button.rs.html

8 lines
330 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-11-17 11:13:10 +00:00
<button hx-post="/api/shifts/@open_shift.id/close" hx-swap="outerHTML" hx-target="body" type="button" class="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2">
Close Shift
</button>