<% content_for :page_actions do %> <% if can?(:fire, @order) %>
  • <%= event_links %>
  • <% end %> <% if can?(:resend, @order) %>
  • <%= button_link_to Spree.t(:resend), resend_admin_order_url(@order), method: :post, icon: 'email' %>
  • <% end %> <% if can?(:admin, Spree::Order) %>
  • <%= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, icon: 'arrow-left' %>
  • <% end %> <% end %> <%= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Order Details' } %>
    <%= render partial: 'spree/shared/error_messages', locals: { target: @order } %>
    <% if @order.payments.exists? && @order.considered_risky? %> <%= render 'spree/admin/orders/risk_analysis', latest_payment: @order.payments.order("created_at DESC").first %> <% end %> <%= render partial: 'add_product' if @order.shipment_state != 'shipped' && can?(:update, @order) %> <% 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 %>