" style="display:<%= (use_billing && (!(@checkout.bill_address.empty? && @checkout.ship_address.empty?) && @checkout.bill_address.eql?(@checkout.ship_address))) ? "none" : "" %>">
<%= f.label :firstname, t(:first_name)+':' %>
|
<%= f.text_field :firstname %> |
<%= f.label :lastname, t(:last_name)+':' %>
|
<%= f.text_field :lastname %> |
<%= f.label :address1, t(:street_address)+':' %>
|
<%= f.text_field :address1, :class => "fullwidth" %> |
<%= f.label :address2, t(:street_address_2)+':' %>
|
<%= f.text_field :address2, :class => "fullwidth" %> |
<%= f.label :city, t(:city)+':' %>
|
<%= f.text_field :city %> |
<%= f.label :zipcode, t(:zip)+':' %>
|
<%= f.text_field :zipcode, :style => "width:100px;" %> |
<%= f.label :state_id, t(:state)+':' %>
|
state">
<%= f.text_field :state_name, :style => "width:150px;display:#{f.object.country.states.empty? ? 'block' : 'none' };", :disabled => !f.object.country.states.empty? %>
<%= f.collection_select :state_id, @states, :id, :name, {:include_blank => true}, {:style=> "width:150px;display:#{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
|
<%= f.label :country_id, t(:country)+':' %>
|
country"><%= f.collection_select :country_id, @countries, :id, :name, {}, {:style => 'width:150px;'} %>
|
<%= f.label :phone, t(:phone)+':' %>
|
<%= f.text_field :phone %> |