Sha256: 3a2679b438cbb6e1c8a4a0dd39630e1c271ad6b8e3990e503f1d1cc8e3fa8f48

Contents?: true

Size: 556 Bytes

Versions: 143

Compression:

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

143 entries across 143 versions & 3 rubygems

Version Path
primer_view_components-0.0.123 app/forms/radio_button_group_form.rb
primer_view_components-0.0.122 app/forms/radio_button_group_form.rb
primer_view_components-0.0.121 app/forms/radio_button_group_form.rb
yattho_view_components-0.1.1 app/forms/radio_button_group_form.rb
yattho_view_components-0.0.1 app/forms/radio_button_group_form.rb
primer_view_components-0.0.120 app/forms/radio_button_group_form.rb
primer_view_components-0.0.119 app/forms/radio_button_group_form.rb
primer_view_components-0.0.118 app/forms/radio_button_group_form.rb
primer_view_components-0.0.117 app/forms/radio_button_group_form.rb
primer_view_components-0.0.116 app/forms/radio_button_group_form.rb
primer_view_components-0.0.115 app/forms/radio_button_group_form.rb
primer_view_components-0.0.114 app/forms/radio_button_group_form.rb
primer_view_components-0.0.113 app/forms/radio_button_group_form.rb
primer_view_components-0.0.112 app/forms/radio_button_group_form.rb
primer_view_components-0.0.111 app/forms/radio_button_group_form.rb
primer_view_components-0.0.110 app/forms/radio_button_group_form.rb
primer_view_components-0.0.109 app/forms/radio_button_group_form.rb
primer_view_components-0.0.108 app/forms/radio_button_group_form.rb
primer_view_components-0.0.107 app/forms/radio_button_group_form.rb
primer_view_components-0.0.106 app/forms/radio_button_group_form.rb