Sha256: a672d7bd888775ff4671488d2ba8deb8e93303bfa79097e7e9c930b1bbc8b5c5

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

<!-- replace 'erb:contains("state_elements = [")' -->
<% states =  address.country.states.map{ |s| [s.name, s.id, {'data-uf'=>s.abbr}]} %>
<% state_elements = [
  form.select(
    :state_id,
    options_for_select(states, address.state ? address.state.id: nil),
    {:include_blank => false},
    {:class => 'ajax-loading form-control ' + (have_states ? 'required' : 'hidden'),
    :disabled => !have_states}
  ) +
  form.text_field(:state_name,
                  :class => !have_states ? 'form-control required' : 'form-control hidden',
                  :disabled => have_states)
  ].join.gsub('"', "'").gsub("\n", "")
%>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
solidus_br_common-1.1.3 app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface
solidus_br_common-1.1.2 app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface
solidus_br_common-1.1.1 app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface
solidus_br_common-1.1.0 app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface
spree_br_common-3.0.1 app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface
spree_br_common-3.0.0 app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface