Sha256: c0e9eeb3ec5646e6a819c9f095f3f669dbc8232efc74b90bb5460f340cf2b78e

Contents?: true

Size: 614 Bytes

Versions: 18

Compression:

Stored size: 614 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class RadioButtonGroupForm < ApplicationForm
  form do |radio_form|
    radio_form.radio_button_group(
      name: "channel",
      label: "How did you hear about us?",
      caption: "We love our listeners"
    ) do |radio_group|
      radio_group.radio_button(value: "online", label: "Online advertisement", caption: "Facebook maybe?")
      radio_group.radio_button(value: "radio", label: "Radio advertisement", caption: "We love us some NPR")
      radio_group.radio_button(value: "friend", label: "From a friend", caption: "Wow, what a good person")
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

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