Sha256: 7ada7dc8f77e55f7b257433830ae5aa6169d3493925004cd36540168d245a339

Contents?: true

Size: 1.19 KB

Versions: 59

Compression:

Stored size: 1.19 KB

Contents

<% content_for :page_actions do %>
  <% if can?(:fire, @order) %>
    <li><%= event_links %></li>
  <% end %>
  <% if can?(:resend, @order) && @order.completed? %>
    <li><%= button_to t('spree.resend'), resend_admin_order_url(@order), method: :post, class: 'btn btn-primary' %></li>
  <% end %>
<% end %>

<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Shipments' } %>
<% admin_breadcrumb(plural_resource_name(Spree::Shipment)) %>

<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.reorder("created_at DESC").first %>
<% end %>

<div data-hook="admin_order_edit_sub_header"></div>

<% if @order.line_items.empty? %>
  <div class="no-objects-found">
    <p><%= t('spree.your_order_is_empty_add_product') %></p>
    <%= link_to t('spree.cart'), spree.cart_admin_order_url(@order), class: 'btn btn-primary' %>
  </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

59 entries across 59 versions & 1 rubygems

Version Path
solidus_backend-2.11.17 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.7 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.11.16 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.0.6 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.6 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.11.15 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.11.14 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.0.5 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.5 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.11.13 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.0.4 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.4 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.11.12 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.0.3 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.3 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.2 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.1 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.1.0 app/views/spree/admin/orders/edit.html.erb
solidus_backend-2.11.11 app/views/spree/admin/orders/edit.html.erb
solidus_backend-3.0.2 app/views/spree/admin/orders/edit.html.erb