Sha256: 14f31299c662b45139fc4b7bd75f102b71a5b33b6ceda8a385bcaea84331cbce

Contents?: true

Size: 445 Bytes

Versions: 18

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class SelectListForm < ApplicationForm
  form do |check_form|
    check_form.select_list(name: "cities", label: "Cool cities", caption: "Select your favorite!", include_blank: true) do |city_list|
      city_list.option(label: "Lopez Island", value: "lopez_island")
      city_list.option(label: "Bellevue", value: "bellevue")
      city_list.option(label: "Seattle", value: "seattle")
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
primer_view_components-0.0.121 app/forms/select_list_form.rb
primer_view_components-0.0.120 app/forms/select_list_form.rb
primer_view_components-0.0.119 app/forms/select_list_form.rb
primer_view_components-0.0.118 app/forms/select_list_form.rb
primer_view_components-0.0.117 app/forms/select_list_form.rb
primer_view_components-0.0.116 app/forms/select_list_form.rb
primer_view_components-0.0.115 app/forms/select_list_form.rb
primer_view_components-0.0.114 app/forms/select_list_form.rb
primer_view_components-0.0.113 app/forms/select_list_form.rb
primer_view_components-0.0.112 app/forms/select_list_form.rb
primer_view_components-0.0.111 app/forms/select_list_form.rb
primer_view_components-0.0.110 app/forms/select_list_form.rb
primer_view_components-0.0.109 app/forms/select_list_form.rb
primer_view_components-0.0.108 app/forms/select_list_form.rb
primer_view_components-0.0.107 app/forms/select_list_form.rb
primer_view_components-0.0.106 app/forms/select_list_form.rb
primer_view_components-0.0.105 app/forms/select_list_form.rb
primer_view_components-0.0.104 app/forms/select_list_form.rb