Sha256: d988930ec80e06bd5c8e2c22c0762b120afe9b932834cb6de3acd9dbb8a95652
Contents?: true
Size: 915 Bytes
Versions: 12
Compression:
Stored size: 915 Bytes
Contents
# frozen_string_literal: true # :nodoc: class MultiInputForm < ApplicationForm form do |my_form| my_form.radio_button_group(name: :country, label: "Country") do |radio_group| radio_group.radio_button(label: "USA", value: "US") radio_group.radio_button(label: "Canada", value: "CA") end my_form.multi(name: :region, label: "Region") do |region| region.select_list(label: "State") do |state_list| state_list.option(label: "California", value: "CA") state_list.option(label: "Washington", value: "WA") state_list.option(label: "Oregon", value: "OR") end region.select_list(label: "Province", hidden: true) do |province_list| province_list.option(label: "British Columbia", value: "BC") province_list.option(label: "Alberta", value: "AB") province_list.option(label: "Saskatchewan", value: "SK") end end end end
Version data entries
12 entries across 12 versions & 1 rubygems