<%= render 'spree/admin/shared/shipping_tabs' %>

<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(t('spree.admin.tab.shipping')) %>
<% admin_breadcrumb(link_to plural_resource_name(Spree::StockLocation), spree.admin_stock_locations_path) %>
<% admin_breadcrumb(@stock_location.name) %>

<% content_for :page_actions do %>
  <ul class="actions inline-menu">
    <% if can?(:show, Spree::StockMovement) %>
      <li>
        <%= link_to plural_resource_name(Spree::StockMovement), admin_stock_location_stock_movements_path(@stock_location.id), class: 'btn btn-primary' %>
      </li>
    <% end %>
  </ul>
<% end %>

<%= render partial: 'spree/shared/error_messages', locals: { target: @stock_location } %>

<%= form_for [:admin, @stock_location] do |f| %>
  <fieldset class="no-border-top">
    <%= render 'form', f: f %>
    <%= render 'spree/admin/shared/edit_resource_links' %>
  </fieldset>
<% end %>
