% f.fields_for :address do |address_form| %>
<%= address_form.text_field :firstname, :class => 'fullwidth' %>
<%= address_form.text_field :lastname, :class => 'fullwidth' %>
<%= address_form.label :address1, t("street_address") %>
<%= address_form.text_field :address1, :class => 'fullwidth' %>
<%= address_form.label :address2, t("street_address") %>
<%= address_form.text_field :address2, :class => 'fullwidth' %>
<%= address_form.label :city, t("city") %>
<%= address_form.text_field :city, :size => 20 %>
<%= address_form.label :zipcode, t("zip") %>
<%= address_form.text_field :zipcode, :size => 10 %>
<%= address_form.label :state, t("state") %>
<% if @states.length == 0 %>
<%= address_form.text_field :state_name, :autocomplete => 'off' %>
<% else %>
<%= address_form.collection_select :state_id, @states, :id, :name %>
<% end %>
<%= address_form.label :country_id, t("country") %>
<%= address_form.collection_select :country_id, @countries, :id, :name, {}, {:style => 'width:150px;'} %>
<%= address_form.label :phone, t("phone") %>
<%= address_form.text_field :phone %>
<% if Spree::Config[:alternative_billing_phone] or Spree::Config[:alternative_billing_phone] %>
<%= address_form.label :alternative_phone, t("alternative_phone") %>
<%= address_form.text_field :alternative_phone %>
<% end %>
<% end %>