Sha256: 2c107f29d3593d66560d8f54904b4da6308359eac4e4599095d15b8a91b4f8d8

Contents?: true

Size: 680 Bytes

Versions: 143

Compression:

Stored size: 680 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:") 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

143 entries across 143 versions & 3 rubygems

Version Path
openproject-primer_view_components-0.33.2 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.33.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.33.0 app/forms/check_box_group_form.rb
primer_view_components-0.25.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.32.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.32.0 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.29.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.29.0 app/forms/check_box_group_form.rb
primer_view_components-0.23.0 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.28.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.28.0 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.27.0 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.26.0 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.25.1 app/forms/check_box_group_form.rb
primer_view_components-0.22.0 app/forms/check_box_group_form.rb
primer_view_components-0.21.1 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.25.0 app/forms/check_box_group_form.rb
openproject-primer_view_components-0.24.0 app/forms/check_box_group_form.rb
primer_view_components-0.21.0 app/forms/check_box_group_form.rb
primer_view_components-0.20.1 app/forms/check_box_group_form.rb