Sha256: b31ae3f31f9cd62b8b1c5a03a0c73177743761c27005a9318803d643e5ff96d7

Contents?: true

Size: 1.23 KB

Versions: 20

Compression:

Stored size: 1.23 KB

Contents

<% address_id = address_type.chars.first %>

<% Spree::Address::ADDRESS_FIELDS.each do |field| %>
  <% if field == "country" %>
    <p class="form-group checkout-content-inner-field" id="<%= "#{address_id}country" %>">
      <span id="<%= "#{address_id}country-selection" %>" class="d-block position-relative">
        <%= address_form.collection_select :country_id, available_countries, :id, :name,
                                           { prompt: Spree.t(:country).upcase },
                                           { class: 'required form-control spree-flat-select'} %>
        <%= image_tag 'arrow.svg', class: 'position-absolute spree-flat-select-arrow' %>
      </span>
    </p>
  <% elsif field == "state" %>
    <div class="form-group mb-4">
      <%= address_field(address_form, :state, address_id) { address_state(address_form, address.country, address_id) } if Spree::Config[:address_requires_state] %>
    </div>
  <% else %>
    <% next if field == "company" && !Spree::Config[:company] %>
    <% next if field == "alternative_#{address_id}_phone" && !Spree::Config["alternative_#{address_id}_phone"] %>
    <div class="form-group mb-4">
      <%= address_field(address_form, field.to_sym, address_id) %>
    </div>  <% end %>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
spree_frontend-4.1.15 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.14 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.13.1 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.13 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.12 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.11 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.10 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.9 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.8 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.7 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.6 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.5 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.4 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.3 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.2 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.1 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.0 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.0.rc3 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.0.rc2 app/views/spree/addresses/_form.html.erb
spree_frontend-4.1.0.rc1 app/views/spree/addresses/_form.html.erb