From dd02df4a177706669bebd9b7d5b8399e2b6d14ed Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Mon, 15 May 2023 01:31:56 +0100 Subject: [PATCH] Checkin button turns into checkout button where applicable --- RIGS/templates/partials/event_detail_buttons.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RIGS/templates/partials/event_detail_buttons.html b/RIGS/templates/partials/event_detail_buttons.html index d70a0623..e393dab2 100644 --- a/RIGS/templates/partials/event_detail_buttons.html +++ b/RIGS/templates/partials/event_detail_buttons.html @@ -51,7 +51,11 @@ Subhire Insurance Form {% if event.can_check_in %} - Check In + {% if request.user.current_event %} + Check Out + {% else %} + Check In + {% endif %} {% endif %} {% endif %}