Sha256: 4aa339b5aeb4d4ad7aa3307703e009cd1d1296acf6d10726885fdbaec02351ac
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
<% content_for :page_title do %> <%= Spree.t(:taxon_edit) %> <% 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_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "remove" %> <%= Spree.t(:or) %> <%= button Spree.t('actions.update'), 'save' %> </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
4 entries across 4 versions & 1 rubygems