<%= t("customer_details") %>

<%= t('account') %>
<%= f.label :email, t(:email)+':' %> <%= f.text_field :email, :class => "fullwidth" %> <% if @order.completed? %> <%= @order.user.nil? ? "Yes" : "No" %> <% else %>   <%= hidden_field_tag :user_id, @order.user_id %> <% end %>

<%= Address.model_name.human(:count => 2) %>

<%= f.fields_for :bill_address do |ba_form| %> <%= render :partial => "admin/shared/address_form", :locals => {:f => ba_form, :name => t('billing_address'), :use_billing => false} %> <% end %> <%= f.fields_for :ship_address do |sa_form| %> <%= render :partial => "admin/shared/address_form", :locals => {:f => sa_form, :name => t('shipping_address'), :use_billing => true} %> <% end %>

<%= button @order.cart? ? t('continue') : t('update') %>