= render partial: 'spree/shared/error_messages', locals: { target: @variant }

= form_for [:admin, @product, @variant] do |f|
  %fieldset{'data-hook' => "admin_variant_new_form"}
    %legend{align: "center"}= t('.new_variant')
    = render partial: 'form', locals: { f: f }
    = render partial: 'spree/admin/shared/new_resource_links'
