From ccb9f1d2bb7dd815ab03de3079dc92fb0b3ce291 Mon Sep 17 00:00:00 2001 From: Emily Wangler Date: Fri, 8 Mar 2024 22:49:40 +0100 Subject: [PATCH] add maximum validation for bsv_days for attendance --- app/views/event/attendances/_list.html.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/event/attendances/_list.html.haml b/app/views/event/attendances/_list.html.haml index 2358653d4..b5a565724 100644 --- a/app/views/event/attendances/_list.html.haml +++ b/app/views/event/attendances/_list.html.haml @@ -20,6 +20,7 @@ = number_field_tag("bsv_days[#{p.id}]", p.bsv_days || @event.bsv_days, min: 0, + max: p.bsv_days || @event.bsv_days, step: 0.5, size: 10, class: 'form-control form-control-sm float-start w-25')