Sha256: f0aed35f072b22e3783128c3cdadfb2e93b7efc53b71a757b44dc96f7c3fa0ed

Contents?: true

Size: 1.12 KB

Versions: 15

Compression:

Stored size: 1.12 KB

Contents

<% admin_breadcrumb(Spree.t(:taxon_edit)) %>


<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:back_to_taxonomies_list), spree.admin_taxonomies_path %>
  </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 filter-actions" data-hook="buttons">
    <%= button Spree.t('actions.update') %>
    <%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy) %>
  </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

15 entries across 15 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.0.3 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.4.2 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.0.2 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.4.1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.1.0 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.0.1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.0.0 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.4.0 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/taxons/edit.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/taxons/edit.html.erb