Sha256: 1d44dc5779a9d21a7c315a2a2ea546d24a53e4e9a8457cebb974621a22fe302b
Contents?: true
Size: 864 Bytes
Versions: 4
Compression:
Stored size: 864 Bytes
Contents
<% ADDRESS_FIELDS.each do |field| %> <div id="<%= [address_name, field].join('_') %>" class="control-group"> <% if field == "country" %> <%= address_form.label :country_id, t(field, :scope => [:activerecord, :attributes, :address]), :class => "control-label" %> <div class="controls"><%= address_form.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'required'} %></div> <% elsif field == "state" && Spree::Config[:address_requires_state] %> <%= address_field(address_form, :state, address_name) { address_state(address_form, address.country) } %> <% else %> <%= address_field(address_form, field.to_sym, address_name) %> <% end %> </div> <% end %> <% if Spree::Config["alternative_#{address_name}_phone"] %> <%= address_field(address_form, :alternative_phone, address_name) %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems