% admin_layout "full-width" %> <% admin_breadcrumb(plural_resource_name(Spree::Order)) %> <% content_for :page_actions do %>
<%= sort_link @search, :completed_at %> | <% else %><%= sort_link @search, :created_at %> | <% end %><%= sort_link @search, :number %> | <%= sort_link @search, :state %> | <%= sort_link @search, :payment_state %> | <% if Spree::Order.checkout_step_names.include?(:delivery) %><%= sort_link @search, :shipment_state %> | <% end %><%= sort_link @search, :email %> | <%= sort_link @search, :total %> | |
---|---|---|---|---|---|---|---|---|
<%= l (@show_only_completed ? order.completed_at : order.created_at).to_date %> | <%= link_to order.number, edit_admin_order_path(order) %> | <%= Spree.t("order_state.#{order.state.downcase}") %> | <%= link_to Spree.t("payment_states.#{order.payment_state}"), admin_order_payments_path(order) if order.payment_state %> | <% if Spree::Order.checkout_step_names.include?(:delivery) %><%= Spree.t("shipment_states.#{order.shipment_state}") if order.shipment_state %> | <% end %><% if order.user %> <%= link_to order.email, edit_admin_user_path(order.user) %> <% else %> <%= mail_to order.email %> <% end %> | <%= order.display_total.to_html %> | <%= link_to_edit_url edit_admin_order_path(order), title: "admin_edit_#{dom_id(order)}", no_text: true %> |