<commit_before><%= content_for :back_link, render("govuk_publishing_components/components/back_link", {
  href: tag_list_path(@tag, @list)
}) %>

<%= content_for :page_title, "Move link to a different list" %>

<%= render 'shared/error_summary', object: @list_item %>

<div class="govuk-grid-row">
  <div class="govuk-grid-column-two-thirds">
    <%= form_for @list, url: update_move_tag_list_list_item_path(@tag, @list, @list_item), method: :patch do |f| %>
      <%= render "govuk_publishing_components/components/radio", {
        name: "list_item[new_list_id]",
        id: "list_item_new_list_id",
        heading: "Move link to a different list",
        heading_size: "l",
        heading_caption: "List",
        heading_level: 1,
        items: @tag.lists_that_do_not_include_list_item(@list_item).map do |list|
        {
          value: list.id,
          text: list.name,
        }
        end<commit_msg>Ensure error is linked to radio fieldset<commit_after><%= content_for :back_link, render("govuk_publishing_components/components/back_link", {
  href: tag_list_path(@tag, @list)
}) %>

<%= content_for :page_title, "Move link to a different list" %>

<%= render 'shared/error_summary', object: @list_item %>

<div class="govuk-grid-row">
  <div class="govuk-grid-column-two-thirds">
    <%= form_for @list, url: update_move_tag_list_list_item_path(@tag, @list, @list_item), method: :patch do |f| %>
      <%= render "govuk_publishing_components/components/radio", {
        name: "list_item[new_list_id]",
        id: "list_item_new_list_id",
        heading: "Move link to a different list",
        heading_size: "l",
        heading_caption: "List",
        heading_level: 1,
        error_message: errors_for(@list_item, :new_list_id),
        items: @tag.lists_that_do_not_include_list_item(@list_item).map do |list|
        {
          value: list.id,
          text: list.name,
        }
        end
{'fraction_non_alphanumeric': 0.13995837669094693, 'fraction_numerical': 0.001040582726326743, 'mean_word_length': 3.4929906542056073, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6324937', 'n_tokens_mistral': 670, 'n_tokens_neox': 648, 'n_words': 130}