<% content_for :page_title, @edition.title %>
<% content_for :title, "Associated user needs" %>
<% content_for :context, @edition.title %>

<div class="govuk-grid-row">
  <div class="govuk-grid-column-two-thirds">      
    <%= form_tag admin_update_needs_path(content_id: @document.content_id), method: :patch do %>
      <%= render "components/autocomplete", {
          id: "need_ids",
          name: "need_ids[]",
          label: {
            text: "Select associated user needs",
            bold: true,
            required: true,
          },
          heading_size: "l",
          select: {
            options: [""] + taggable_needs_container,
            multiple: true,
            selected: @document.need_ids,
          },
      } %>

        <%= render "govuk_publishing_components/components/button", {
          text: "Save"
        } %>
    <% end %>
  </div>
</div>

<% content_for :page_title, @edition.title %>
<% content_for :title, "Associated user needs" %>
<% content_for :context, @edition.title %>
<% content_for :back_link do %>
  <%= render "govuk_publishing_components/components/back_link", href: admin_edition_path(@edition) %>
<% end %>

<div class="govuk-grid-row">
  <div class="govuk-grid-column-two-thirds">      
    <%= form_tag admin_update_needs_path(content_id: @document.content_id), method: :patch do %>
      <%= render "components/autocomplete", {
          id: "need_ids",
          name: "need_ids[]",
          label: {
            text: "Select associated user needs",
            bold: true,
            required: true,
          },
          heading_size: "l",
          select: {
            options: [""] + taggable_needs_container,
            multiple: true,
            selected: @document.need_ids,
          },
      } %>

        <%= render "govuk_publishing_components/components/button", {
          text: "Save"
        } %>
    <% end %>
  </div>
</div>

Revert "Remove back button from user needs pages"
Revert "Remove back button from user needs pages"

This reverts commit b71e34fb866a92bbe00fef63bb798569f9c7296a.
