Sha256: 8820d70b4ff0d0b8b988d4a52a6cfd3525f7dbc2fa3edd714763197b1d867c8e

Contents?: true

Size: 443 Bytes

Versions: 55

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class SelectForm < ApplicationForm
  form do |select_form|
    select_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

55 entries across 55 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.23.0 app/forms/select_form.rb
primer_view_components-0.19.0 app/forms/select_form.rb
openproject-primer_view_components-0.22.2 app/forms/select_form.rb
primer_view_components-0.18.2 app/forms/select_form.rb
openproject-primer_view_components-0.22.1 app/forms/select_form.rb
primer_view_components-0.18.1 app/forms/select_form.rb
openproject-primer_view_components-0.22.0 app/forms/select_form.rb
primer_view_components-0.18.0 app/forms/select_form.rb
openproject-primer_view_components-0.21.0 app/forms/select_form.rb
primer_view_components-0.17.0 app/forms/select_form.rb
openproject-primer_view_components-0.20.0 app/forms/select_form.rb
primer_view_components-0.16.1 app/forms/select_form.rb
primer_view_components-0.16.0 app/forms/select_form.rb
openproject-primer_view_components-0.19.0 app/forms/select_form.rb
primer_view_components-0.15.1 app/forms/select_form.rb
primer_view_components-0.15.0 app/forms/select_form.rb
openproject-primer_view_components-0.18.1 app/forms/select_form.rb
openproject-primer_view_components-0.17.1 app/forms/select_form.rb
openproject-primer_view_components-0.17.0 app/forms/select_form.rb
primer_view_components-0.14.0 app/forms/select_form.rb