<% content_for :context, @edition.title %>
<% content_for :page_title, "Edit legacy URL redirects" %>

<% content_for :back_link do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: admin_edition_path(@edition)
  } %>
<% end %>

<div class="govuk-grid-row">
  <section class="govuk-grid-column-two-thirds">
    <%= form_tag admin_edition_document_sources_path(@edition), method: :patch do %>
      <%= render "govuk_publishing_components/components/textarea", {
        label: {
          is_page_heading: true,
          heading_size: "xl",
          text: "Edit legacy URL redirects"
        },
        hint: "Enter one URL per line.",
        name: "document_sources",
        id: "document_sources",
        value: @edition.document.document_sources.map(&:url).join("\n"),
        rows: 20
      } %>
      <%= render "govuk_publishing_components/components/button", {
        text: "Save",
        margin_bottom: 8
      } %>
    <% end %>
  </div>
</div>

<% content_for :page_title, "Edit legacy URL redirects" %>

<% content_for :back_link do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: admin_edition_path(@edition)
  } %>
<% end %>

<div class="govuk-grid-row">
  <section class="govuk-grid-column-two-thirds">
    <span class="govuk-caption-xl"><%= @edition.title %></span>
    <%= form_tag admin_edition_document_sources_path(@edition), method: :patch do %>
      <%= render "govuk_publishing_components/components/textarea", {
        label: {
          is_page_heading: true,
          heading_size: "xl",
          text: "Edit legacy URL redirects"
        },
        hint: "Enter one URL per line.",
        name: "document_sources",
        id: "document_sources",
        value: @edition.document.document_sources.map(&:url).join("\n"),
        rows: 20
      } %>
      <%= render "govuk_publishing_components/components/button", {
        text: "Save",
        margin_bottom: 8
      } %>
    <% end %>
  </div>
</div>

Use caption span instead of context content for new legacy url edit page
Use caption span instead of context content for new legacy url edit page

The textarea label as header means that the content_for context is not rendered. This change uses a span instead.
