Sha256: cdd7fb1974deda2c0790543da8c08d940815d9cca0ba507e7e59e0fa8fa0ff0e

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

<% content_for :page_title do %>
  <%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /
  <%= link_to @taxonomy.name, spree.edit_admin_taxonomy_url(@taxonomy) %> /
  <%= @taxon.name %>
<% end %>

<%# 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 'form', f: f %>

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

<% content_for :head do %>
  <%= javascript_tag do %>
    $(document).ready(function() {
      var field  = $('#permalink_part'),
          target = $('#permalink_part_display'),
          permalink_part_default = target.text().trim();

      target.text(permalink_part_default + field.val());
      field.on('keyup blur', function () {
        target.text(permalink_part_default + $(this).val());
      });
    });
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.13 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.12 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.11 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.10 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.9 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.8 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.7 app/views/spree/admin/taxons/edit.html.erb
spree_backend-3.1.6 app/views/spree/admin/taxons/edit.html.erb