Skip to content

Commit

Permalink
Fix checkbox help
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Aug 16, 2024
1 parent 1b18363 commit d6ebdf7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/helpers/forms_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit d6ebdf7

Please sign in to comment.