%= csrf_meta_tags %>
<% content_for :page_actions do %>
<%= event_links %>
<%= button_link_to Spree.t(:resend), resend_admin_order_url(@order), :method => :post, :icon => 'icon-email' %>
<%= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left' %>
<% end %>
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Order Details' } %>
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
<%= render :partial => 'add_product' %>
<% if @order.line_items.empty? %>
<%= Spree.t(:your_order_is_empty_add_product)%>
<% end %>
<%= render :partial => 'form', :locals => { :order => @order } %>
<% content_for :head do %>
<%= javascript_tag 'var expand_variants = true;' %>
<% end %>