<%
  left_col = "col-md-7"
  right_col = "col-md-5"
%>

<%= form_for(@step_by_step_page) do |form| %>
  <%= render "shared/steps/form_errors", resource: step_by_step_page %>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_field :title %>
    </div>
  </div>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_field :slug, label: "Slug (no slashes)", disabled: @step_by_step_page.persisted? %>
    </div>
  </div>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_area :introduction, class: "form-control", rows: 8 %>
    </div>
  </div>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_area :description, label: "Meta description", class: "form-control", rows: 8 %>
    </div>
  </div>

  <div class="form-group">
    <%= form.submit "Save", class: "btn btn-primary" %>
  </div>
  <div class="form-group">
    <%= link_to 'Cancel', @step_by_step_page %>
  </div>
<% end %>

<%
  left_col = "col-md-7"
  right_col = "col-md-5"
%>

<%= form_for(@step_by_step_page) do |form| %>
  <%= render "shared/steps/form_errors", resource: step_by_step_page %>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_field :title %>
    </div>
  </div>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_field :slug, label: "Slug (no slashes)" %>
    </div>
  </div>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_area :introduction, class: "form-control", rows: 8 %>
    </div>
  </div>

  <div class="form-group row">
    <div class="<%= left_col %>">
      <%= form.text_area :description, label: "Meta description", class: "form-control", rows: 8 %>
    </div>
  </div>

  <div class="form-group">
    <%= form.submit "Save", class: "btn btn-primary" %>
  </div>
  <div class="form-group">
    <%= link_to 'Cancel', @step_by_step_page %>
  </div>
<% end %>

Make slug on step-by-step editable
Make slug on step-by-step editable

Currently you cannot edit the slug of an existing step-by-step
item.

This commit allows the slug to be edited.
I've tried this in integration and seems to work fine.

Redirects are being set up for the old slug.
