Sha256: 7b5b501fcd52a2b5e9872178456ab787ecfbc7c094c7a0bf2c81a4e4a29eb119

Contents?: true

Size: 704 Bytes

Versions: 18

Compression:

Stored size: 704 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class CheckBoxGroupForm < ApplicationForm
  form do |check_form|
    check_form.check_box_group(label: "I like to eat, eat, eat:", caption: "Nom nom nom") do |check_group|
      check_group.check_box(
        name: "long_a",
        label: "Ey-ples and ba-naynays",
        caption: 'Long "A" sound'
      )

      check_group.check_box(
        name: "long_i",
        label: "Eye-ples and ba-nainais",
        caption: 'Long "I" sound'
      )

      check_group.check_box(
        name: "long_o",
        value: "long_o",
        unchecked_value: "not_long_o",
        label: "Oh-ples and ba-nonos",
        caption: 'Long "O" sound'
      )
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.52.2 app/forms/check_box_group_form.rb
primer_view_components-0.36.4 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.52.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.52.0 app/forms/check_box_group_form.rb
primer_view_components-0.36.3 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.51.0 app/forms/check_box_group_form.rb
primer_view_components-0.36.2 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.50.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.50.0 app/forms/check_box_group_form.rb
primer_view_components-0.36.1 app/forms/check_box_group_form.rb
primer_view_components-0.36.0 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.49.2 app/forms/check_box_group_form.rb
primer_view_components-0.35.2 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.49.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.49.0 app/forms/check_box_group_form.rb
primer_view_components-0.35.1 app/forms/check_box_group_form.rb
primer_view_components-0.35.0 app/forms/check_box_group_form.rb