Sha256: 33a66ace1cbb7a6e46abdf98b3b83e061b8a85a809bf12a261d39ea815d9f6a1

Contents?: true

Size: 1.26 KB

Versions: 69

Compression:

Stored size: 1.26 KB

Contents

<%= render 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:taxon_edit) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:back_to_taxonomies_list), spree.admin_taxonomies_path, :icon => 'arrow-left' %>
  </li>
<% 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-buttons" data-hook="buttons">
    <%= button Spree.t('actions.update'), 'refresh' %>
    <%= Spree.t(:or) %>
    <%= 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

69 entries across 69 versions & 2 rubygems

Version Path
solidus_backend-1.0.2 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.4.10 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.3.13 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.0.1 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.2.14 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.0.0 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.0.0.rc2 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.0.0.rc1 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.4.9 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.3.12 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.2.13 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.0.0.pre3 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.0.0.pre2 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.4.8 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.3.11 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.2.12 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.0.0.pre app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.4.7 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.3.10 app/views/spree/admin/taxons/edit.html.erb
spree_backend-2.4.6 app/views/spree/admin/taxons/edit.html.erb