<commit_before><div class="format-advice">
  <p><strong>Use this format for:</strong> Guidance for professional or specialist users so that they can complete a defined task.</p>
</div>

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

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

      <%= form.text_field :need_ids, label_text: 'Maslow Need IDs (enter a comma-separated list)', placeholder: "Enter a comma-separated list of Maslow 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 } %>

      <% cache_if edition.related_detailed_guide_ids.empty?, taggable_detailed_guides_cache_digest do %>
        <%= form.label :related_detailed_guide_ids, 'Related guides' %>
        <%= form.select :related_detailed_guide_ids, options_for_select(taggable_detailed_guides_container, edition.related_detailed_guide_ids), {}, multiple: true, class: 'chzn-select form-control', data: { placeholder: "Choose related detailed guides…"} %>
      <% end %>
    </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 :additional_related_mainstream_content_url %>
    </fieldset>

    <%= render partial: 'nation_fields', locals: { form: form, edition: edition } %>
  <% end %>
<% end %><commit_msg>Add related mainstream advice in admin view<commit_after><div class="format-advice">
  <p><strong>Use this format for:</strong> Guidance for professional or specialist users so that they can complete a defined task.</p>
</div>

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

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

      <%= form.text_field :need_ids, label_text: 'Maslow Need IDs (enter a comma-separated list)', placeholder: "Enter a comma-separated list of Maslow 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 } %>

      <% cache_if edition.related_detailed_guide_ids.empty?, taggable_detailed_guides_cache_digest do %>
        <%= form.label :related_detailed_guide_ids, 'Related guides' %>
        <%= form.select :related_detailed_guide_ids, options_for_select(taggable_detailed_guides_container, edition.related_detailed_guide_ids), {}, multiple: true, class: 'chzn-select form-control', data: { placeholder: "Choose related detailed guides…"} %>
      <% end %>
    </fieldset>

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

    <fieldset>
      <legend>Related mainstream content</legend>
      <p>
        Link to the top-level URL for mainstream content - not a specific chapter.
      </p>
      <%= form.text_field :related_mainstream_content_url %>
      <%= form.text_field :additional_related_mainstream_content_url %>
    </fieldset>

    <%= render partial: 'nation_fields', locals: { form: form, edition: edition } %>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.1377995642701525, 'fraction_numerical': 0.0, 'mean_word_length': 4.338662790697675, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '4144355', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1078, 'n_words': 278}