<% javascript 'backend/seo' %>

<% sluggable_field ||= 'title' %>

<%= content_tag :div, class: 'card', data: { seo: true, path: backend_seo_slugify_path, sluggable_input: "##{f.object_name}_#{sluggable_field}" } do %>
  <div class="card-header">
    <%= t 'b.msg.seo' %>
  </div>

  <div class="card-block">
    <% if slug.present? %>
      <%= f.input :seo_slug, as: :string, input_html: { value: slug } %>
    <% else %>
      <%= f.input :seo_slug, as: :string %>
    <% end %>

    <%= f.input :seo_title, as: :string %>
    <%= f.input :seo_description, as: :string %>
    <%= f.input :seo_keywords, as: :string %>
    <%= f.input :seo_custom, as: :text %>
  </div>
<% end %>

<% javascript 'backend/seo' %>

<% sluggable_field ||= 'title' %>
<% slug ||= nil %>

<%= content_tag :div, class: 'card', data: { seo: true, path: backend_seo_slugify_path, sluggable_input: "##{f.object_name}_#{sluggable_field}" } do %>
  <div class="card-header">
    <%= t 'b.msg.seo' %>
  </div>

  <div class="card-block">
    <% if slug.present? %>
      <%= f.input :seo_slug, as: :string, input_html: { value: slug } %>
    <% else %>
      <%= f.input :seo_slug, as: :string %>
    <% end %>

    <%= f.input :seo_title, as: :string %>
    <%= f.input :seo_description, as: :string %>
    <%= f.input :seo_keywords, as: :string %>
    <%= f.input :seo_custom, as: :text %>
  </div>
<% end %>

Fix seo form partial to allow for a custom slug.
Fix seo form partial to allow for a custom slug.
