<commit_before><%= edition_editing_tabs(edition) do %>
  <%= standard_edition_form(edition) do |form| %>

    <fieldset>
      <legend>Associations</legend>
      <%= render partial: 'related_policy_fields', locals: { form: form, edition: edition } %>
      <%= render partial: 'topic_fields', locals: { form: form, edition: edition } %>

      <%= form.label :primary_mainstream_category_id, 'Primary detailed guidance category' %>
      <%= form.select :primary_mainstream_category_id, mainstream_category_options(edition, edition.primary_mainstream_category_id), {}, class: 'chzn-select', data: { placeholder: "Choose a primary detailed guidance category..."} %>

      <%= form.label :other_mainstream_category_ids, 'Other detailed guidance categories' %>
      <%= form.select :other_mainstream_category_ids, mainstream_category_options(edition, edition.other_mainstream_category_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose other detailed guidance categories..."} %>

      <%= form.text_field :need_ids, placeholder: "Enter a comma-separated list of need ids", value: edition.need_ids.join(", ") %>

      <%= render partial: 'specialist_sector_fields', locals: { form: form, edition: edition } %>

      <%= render partial: 'organisation_fields', locals: { form: form, edition: edition } %>

      <%= form.label :outbound_related_detailed_guide_ids, 'Related guides' %>
      <%= form.select :outbound_related_detailed_guide_ids, options_from_collection_for_select(DetailedGuide.alphabetical.latest_edition.active, :document_id, :title, edition.outbound_related_detailed_guide_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose related detailed guides..."} %>
    </fieldset>

    <%= render partial: 'inline_attachments_info', locals: { form: form, edition: edition } %>

    <fieldset>
      <legend>Related mainstream content</legend>
      <%= form.text_field :related_mainstream_content_url %>
      <%= form.text_field :related_mainstream_content_title %>
      <%= form.text_field :additional_related_mainstream_content_url %>
      <%= form.text_field :additional_related_mainstream_content_title %>
    </fieldset>

    <%= render partial: 'nation_fields', locals: { form: form, edition: edition } %>

    <%= render partial: 'first_published_at', locals: { form: form, edition: edition } %>
  <% end %>
<% end %><commit_msg>Det guides: prompt user for comma-separated need ids<commit_after><%= edition_editing_tabs(edition) do %>
  <%= standard_edition_form(edition) do |form| %>

    <fieldset>
      <legend>Associations</legend>
      <%= render partial: 'related_policy_fields', locals: { form: form, edition: edition } %>
      <%= render partial: 'topic_fields', locals: { form: form, edition: edition } %>

      <%= form.label :primary_mainstream_category_id, 'Primary detailed guidance category' %>
      <%= form.select :primary_mainstream_category_id, mainstream_category_options(edition, edition.primary_mainstream_category_id), {}, class: 'chzn-select', data: { placeholder: "Choose a primary detailed guidance category..."} %>

      <%= form.label :other_mainstream_category_ids, 'Other detailed guidance categories' %>
      <%= form.select :other_mainstream_category_ids, mainstream_category_options(edition, edition.other_mainstream_category_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose other detailed guidance categories..."} %>

      <%= form.text_field :need_ids, label_text: 'Need ids (enter a comma-separated list)', placeholder: "Enter a comma-separated list of need ids", value: edition.need_ids.join(", ") %>

      <%= render partial: 'specialist_sector_fields', locals: { form: form, edition: edition } %>

      <%= render partial: 'organisation_fields', locals: { form: form, edition: edition } %>

      <%= form.label :outbound_related_detailed_guide_ids, 'Related guides' %>
      <%= form.select :outbound_related_detailed_guide_ids, options_from_collection_for_select(DetailedGuide.alphabetical.latest_edition.active, :document_id, :title, edition.outbound_related_detailed_guide_ids), {}, multiple: true, class: 'chzn-select', data: { placeholder: "Choose related detailed guides..."} %>
    </fieldset>

    <%= render partial: 'inline_attachments_info', locals: { form: form, edition: edition } %>

    <fieldset>
      <legend>Related mainstream content</legend>
      <%= form.text_field :related_mainstream_content_url %>
      <%= form.text_field :related_mainstream_content_title %>
      <%= form.text_field :additional_related_mainstream_content_url %>
      <%= form.text_field :additional_related_mainstream_content_title %>
    </fieldset>

    <%= render partial: 'nation_fields', locals: { form: form, edition: edition } %>

    <%= render partial: 'first_published_at', locals: { form: form, edition: edition } %>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.1374591503267974, 'fraction_numerical': 0.0, 'mean_word_length': 5.038224414303329, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '5992314', 'n_tokens_mistral': 1543, 'n_tokens_neox': 1395, 'n_words': 320}