Sha256: 52694606b5ab477bcbbe496ad3acc51ad4d870e1d01a6ddb96281b7e537b947e

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

<% 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: 'envelope' %>
  <% end %>
<% end %>

<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :cart } %>

<div data-hook="admin_order_edit_header">
  <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @order } %>
</div>

<% 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_line_item' if can?(:update, @order) %>

<% if @order.line_items.empty? %>
  <div class="alert alert-warning">
    <%= Spree.t(:your_order_is_empty_add_product)%>
  </div>
<% end %>

<div data-hook="admin_order_edit_form">
  <div id="order-form-wrapper">
    <%= render partial: 'line_items_edit_form', locals: { order: @order } %>
  </div>
</div>

<% content_for :head do %>
  <%= javascript_tag 'var expand_variants = true;' %>
<% end %>

<%= render partial: 'spree/admin/shared/order_summary' %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.9 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.8 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.7 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.6 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.5 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.4 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.3 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.2 app/views/spree/admin/orders/cart.html.erb