Sha256: a439c4b51c37d8f4c93f71dd551abe349f7a81a82b8bc7a42b86236b6b653c0f

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 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

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-3.0.1 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.0 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/orders/cart.html.erb
spree_backend-3.0.0.rc1 app/views/spree/admin/orders/cart.html.erb