Sha256: 7901c4d3a7c83e41dad26ed3bfe6fb0c72bb6bb859508bca0881fcb483693807

Contents?: true

Size: 1.11 KB

Versions: 11

Compression:

Stored size: 1.11 KB

Contents

<% content_for :page_actions do %>
  <% if can?(:fire, @order) %>
    <li><%= event_links %></li>
  <% end %>
  <% if can?(:resend, @order) && @order.completed? %>
    <li><%= button_link_to Spree.t(:resend), resend_admin_order_url(@order), method: :post %></li>
  <% end %>
<% end %>

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

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

<% if @order.payments.exists? && @order.is_risky? %>
  <%= render 'spree/admin/orders/risk_analysis', latest_payment: @order.payments.order("created_at DESC").first %>
<% end %>

<% if can?(:update, Spree::Shipment) && can?(:update, @order) && @order.shipment_state != "shipped" %>
  <%= render partial: 'add_product' %>
<% end %>

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_backend-2.0.3 app/views/spree/admin/orders/edit.html.erb
solidus_backend-1.4.2 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.0.2 app/views/spree/admin/orders/edit.html.erb
solidus_backend-1.4.1 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.0.1 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.0.0 app/views/spree/admin/orders/edit.html.erb
solidus_backend-1.4.0 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/orders/edit.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/orders/edit.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/orders/edit.html.erb