Sha256: f1c475db52178fc20d934dd274e8fc6f6ccd163203026519746979efa09d0c96

Contents?: true

Size: 995 Bytes

Versions: 6

Compression:

Stored size: 995 Bytes

Contents

<% content_for :page_title do %>
  <%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /

  <%= link_to @taxonomy.root.name, spree.edit_admin_taxonomy_url(@taxonomy) %>
  <% unless @taxon.root? %>
   / <%= @taxon.name %>
   <% end %>
<% end %>

<% content_for :page_actions do %>
  <%= external_page_preview_link(@taxon) %>
<% end %>

<%# Because otherwise the form would attempt to use to_param of @taxon %>
<% form_url = admin_taxonomy_taxon_path(@taxonomy.id, @taxon.id) %>

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

<%= form_for [:admin, @taxonomy, @taxon], method: :put, url: form_url, html: { multipart: true } do |f| %>
  <%= render 'form', f: f %>

  <div class="form-actions" data-hook="buttons">
    <%= button Spree.t('actions.update'), 'save.svg' %>
    <span class="or"><%= Spree.t(:or) %></span>
    <%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "cancel.svg" %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_backend-4.5.1 app/views/spree/admin/taxons/edit.html.erb
spree_backend-4.5.0 app/views/spree/admin/taxons/edit.html.erb
spree_backend-4.4.1 app/views/spree/admin/taxons/edit.html.erb
spree_backend-4.4.0 app/views/spree/admin/taxons/edit.html.erb
spree_backend-4.4.0.rc2 app/views/spree/admin/taxons/edit.html.erb
spree_backend-4.4.0.rc1 app/views/spree/admin/taxons/edit.html.erb