From d6ebdf7530651b83d65bf7c803636289455c600d Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Fri, 16 Aug 2024 13:26:28 -0700 Subject: [PATCH] Fix checkbox help --- app/helpers/forms_helper.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/helpers/forms_helper.rb b/app/helpers/forms_helper.rb index e3eda3da22..2897affb36 100644 --- a/app/helpers/forms_helper.rb +++ b/app/helpers/forms_helper.rb @@ -92,14 +92,14 @@ def check_box_with_label(**args) wrap_class = form_group_wrap_class(args, "checkbox") tag.div(class: wrap_class) do - args[:form].label(args[:field]) do + concat(args[:form].label(args[:field]) do concat(args[:form].check_box(args[:field], opts)) concat(args[:label]) if args[:between].present? concat(tag.div(class: "d-inline-block ml-3") { args[:between] }) end - concat(args[:append]) if args[:append].present? - end + end) + concat(args[:append]) if args[:append].present? end end @@ -126,14 +126,14 @@ def radio_with_label(**args) wrap_class = form_group_wrap_class(args, "radio") tag.div(class: wrap_class) do - args[:form].label("#{args[:field]}_#{args[:value]}") do + concat(args[:form].label("#{args[:field]}_#{args[:value]}") do concat(args[:form].radio_button(args[:field], args[:value], opts)) concat(args[:label]) if args[:between].present? concat(tag.div(class: "d-inline-block ml-3") { args[:between] }) end - concat(args[:append]) if args[:append].present? - end + end) + concat(args[:append]) if args[:append].present? end end