Sha256: f867537dfb11c3c20e73ecbf5b857cedbd31617c46e295130ec8d6cee855ea5b

Contents?: true

Size: 1.01 KB

Versions: 62

Compression:

Stored size: 1.01 KB

Contents

%form
  .address-fields
    .property{ data: { address_region_fields: 'country' } }
      = label_tag "address[country]", nil, class: 'property__name' do
        %span.property__text Country
      .value
        - options = options_for_select([["United States", "US"], ["Canada", "CA"], ['Mexico', 'MX'], ['American Samoa', 'AS']])
        = select_tag "address[country]", options, title: "Address Country"

    .property{ data: { address_region_fields: 'region' } }
      = label_tag "address[region]", nil, class: 'property__name' do
        %span.property__text Region
      .value
        - regions = { 'United States' => [['Pennsylvania', 'PA']], 'Canada' => [['Quebec', 'QC']], 'American Samoa' => [['Palauli', 'PL']] }
        - options = grouped_options_for_select(regions, 'PA', prompt: 'Select Region')
        = select_tag "address_region_select", options, required: true, title: "Address Region", class: 'hidden'
        = text_field_tag "address[region]", 'PA', class: 'text-box', required: true, title: "Address Region"

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.5.15 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.36 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.14 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.35 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.13 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.34 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.12 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.33 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.11 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.10 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.32 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.9 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.31 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.8 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.30 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.7 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.29 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.6 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.4.28 test/javascripts/fixtures/address_region_fields.html.haml
workarea-storefront-3.5.5 test/javascripts/fixtures/address_region_fields.html.haml