clubmanager/templates/components/close_shift_button.rs.html

8 lines
330 B
HTML

@use cm_lib::models::Shift;
@(open_shift: &Shift)
<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>