% content_for :page_actions do %>
<% if can?(:create, Spree::Product) %>
<%= link_to t('spree.new_product'), new_object_url, id: 'admin_new_product', class: 'btn btn-primary' %>
<% end %>
<% if defined?(Spree::Frontend::Engine) %>
<%= link_to t('spree.view_product'), spree.product_path(@product), id: 'admin_view_product', class: 'btn btn-default ml-2' %>
<% end %>
<% end %>
<%= render partial: 'spree/admin/shared/product_tabs', locals: { current: 'Product Details' } %>
<%= render partial: 'spree/shared/error_messages', locals: { target: @product } %>
<% admin_breadcrumb(t('spree.product_details')) %>
<%= form_for [:admin, @product], html: { multipart: true } do |f| %>
<% end %>