= render partial: 'spree/admin/shared/configuration_menu'

- content_for :page_title do
  = t("spree.taxonomy_edit")

- content_for :page_actions do
  %li
    = button_link_to t("spree.back_to_taxonomies_list"), spree.admin_taxonomies_path, icon: 'icon-arrow-left'

- # Because otherwise the form would attempt to use to_param of @taxon
- form_url = admin_taxonomy_taxon_path(@taxonomy.id, @taxon.id)
= form_for [:admin, @taxonomy, @taxon], method: :put, url: form_url, html: { multipart: true } do |f|
  = render partial: 'form', locals: { f: f }
  .form-buttons
    = button t('spree.actions.update'), 'icon-refresh'
    = button_link_to t('spree.actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "icon-remove"
