<%= 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::ShippingMethod), spree.admin_shipping_methods_path) %>
<% admin_breadcrumb(t('spree.new_shipping_method')) %>

<% content_for :page_actions do %>
<% end %>

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

<div data-hook="admin_shipping_method_new_form">
  <%= form_for [:admin, @shipping_method] do |f| %>
    <fieldset class="no-border-top">
      <%= render partial: 'form', locals: { f: f } %>

      <div class="clear"></div>

      <div data-hook="admin_shipping_method_new_form_buttons">
        <%= render partial: 'spree/admin/shared/new_resource_links' %>
      </div>
    </fieldset>
  <% end %>
</div>
