<commit_before><div class="row">
  <div class="col-md-12">
    <h1><%= _('Create a new plan') %></h1>

    <p class="left-indent">
      <%= _("Before you get started, we need some information about your research project to set you up with the best DMP template for your needs.") %>
    </p>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <%= form_for Plan.new, url: plans_path do |f| %>
      <!-- Plan name section -->
      <h2 id="project-title"><%= _('What research project are you planning?') %></h2>
      <div class="form-group row">
        <div class="col-xs-6">
          <%= f.text_field(:title, class: 'form-control', 'aria-describedby': 'project-title', 'aria-required': 'true', 
                'data-toggle': 'tooltip',
                title: _('If applying for funding, state the project title exactly as in the proposal.')) %>
        </div>
        <div class="col-md-1">&nbsp;</div>
        <div class="col-xs-5 checkbox create-plan-mock">
          <%= label_tag(:is_test, raw("#{check_box_tag(:is_test, "1", false)} #{_('mock project for testing, practice, or educational purposes')}")) %>
        </div>
      </div>

      <!-- Organisation selection -->
      <h2 id="research-org"><%= _('Select the primary research organisation') %></h2>
      <div class="form-group row">
        <div class="col-md-6">
          <%= render partial: "shared/accessible_combobox", 
                     locals: {name: 'plan[org_name]',
                              id: 'plan_org_name',
                              default_selection: @default_org,
                              models: @orgs,
                              attribute: 'name',
                              required: true,
                              error: _('You must select a research organisation from the list.'),
                              tooltip: _('Please select a valid research organisation from the list.')} %>
        </div>
        <div class="col-md-1 pad-top-10 create-plan-or"><strong>- <%= _('or') %> -</strong></div>
        <div class="col-md-5 create-plan-checkbox">
          <div class="checkbox">
            <%= label_tag(:plan_no_org, raw("#{check_box_tag(:plan_no_org)} #{_('My research organisation is not on the list')} <em>#{_(' or ')}</em> #{_('no research organisation is associated with this plan')}")) %>
          </div>
        </div>
      </div>
  
      <!-- Funder selection -->
      <h2 id="funder-org"><%= _('Select the primary funding organisation') %></h2>
      <div class="form-group row">
        <div class="col-xs-6">
          <%= render partial: "shared/accessible_combobox", 
                     locals: {name: 'plan[funder_name]',
                              id: 'plan_funder_name',
                              default_selection: nil,
                              models: @funders,
                              attribute: 'name',
                              required: true,
                              error: _('You must select a funding organisation from the list.'),
                              tooltip: _('Please select a valid funding organisation from the list.')} %>
        </div>
        <div class="col-md-1 create-plan-or"><strong>- <%= _('or') %> -</strong></div>
        <div class="col-xs-5 create-plan-checkbox">
          <div class="checkbox">
            <%= label_tag(:plan_no_funder, raw("#{check_box_tag(:plan_no_funder)} #{_('No funder associated with this plan')}")) %>
          </div>
        </div>
      </div>

      <!-- Template selection -->
      <div id="available-templates" style="visibility: none;">
        <%= hidden_field_tag 'template-option-target', org_admin_template_options_path %>
        <h2 id="template-selection"><%= _('Which DMP template would you like to use?') %></h2>
        <div class="form-group row">
          <div class="col-xs-6">
            <%= select_tag(:plan_template_id, "<option value=\"\">#{_('Please select a template')}</option>", name: 'plan[template_id]',
                           class: 'form-control', 'aria-describedby': 'template-selection') %><commit_msg>Revised text for plan#new. DMPRoadmap/roadmap#1479<commit_after><div class="row">
  <div class="col-md-12">
    <h1><%= _('Create a new plan') %></h1>

    <p class="left-indent">
      <%= _("Before you get started, we need some information about your research project to set you up with the best DMP template for your needs.") %>
    </p>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <%= form_for Plan.new, url: plans_path do |f| %>
      <!-- Plan name section -->
      <h2 id="project-title"><%= _('What research project are you planning?') %></h2>
      <div class="form-group row">
        <div class="col-xs-6">
          <%= f.text_field(:title, class: 'form-control', 'aria-describedby': 'project-title', 'aria-required': 'true', 
                'data-toggle': 'tooltip',
                title: _('If applying for funding, state the project title exactly as in the proposal.')) %>
        </div>
        <div class="col-md-1">&nbsp;</div>
        <div class="col-xs-5 checkbox create-plan-mock">
          <%= label_tag(:is_test, raw("#{check_box_tag(:is_test, "1", false)} #{_('mock project for testing, practice, or educational purposes')}")) %>
        </div>
      </div>

      <!-- Organisation selection -->
      <h2 id="research-org"><%= _('Select the primary research organisation') %></h2>
      <div class="form-group row">
        <div class="col-md-6">
          <%= render partial: "shared/accessible_combobox", 
                     locals: {name: 'plan[org_name]',
                              id: 'plan_org_name',
                              default_selection: @default_org,
                              models: @orgs,
                              attribute: 'name',
                              required: true,
                              error: _('You must select a research organisation from the list.'),
                              tooltip: _('Please select a valid research organisation from the list.')} %>
        </div>
        <div class="col-md-1 pad-top-10 create-plan-or"><strong>- <%= _('or') %> -</strong></div>
        <div class="col-md-5 create-plan-checkbox">
          <div class="checkbox">
            <% primary_research_org_message = _('No research organisation associated with this plan or my research organisation is not listed') %>
            <%= label_tag(:plan_no_org, raw("#{check_box_tag(:plan_no_org)} #{primary_research_org_message}")) %>
          </div>
        </div>
      </div>
  
      <!-- Funder selection -->
      <h2 id="funder-org"><%= _('Select the primary funding organisation') %></h2>
      <div class="form-group row">
        <div class="col-xs-6">
          <%= render partial: "shared/accessible_combobox", 
                     locals: {name: 'plan[funder_name]',
                              id: 'plan_funder_name',
                              default_selection: nil,
                              models: @funders,
                              attribute: 'name',
                              required: true,
                              error: _('You must select a funding organisation from the list.'),
                              tooltip: _('Please select a valid funding organisation from the list.')} %>
        </div>
        <div class="col-md-1 create-plan-or"><strong>- <%= _('or') %> -</strong></div>
        <div class="col-xs-5 create-plan-checkbox">
          <div class="checkbox">
            <% primary_funding_message = _('No funder associated with this plan or my funder is not listed') %>
            <%= label_tag(:plan_no_funder, raw("#{check_box_tag(:plan_no_funder)} #{primary_funding_message}")) %>
          </div>
        </div>
      </div>

      <!-- Template selection -->
      <div id="available-templates" style="visibility: none;">
        <%= hidden_field_tag 'template-option-target', org_admin_template_options_path %>
        <h2 id="template-selection"><%= _('Which DMP template would you like to use?') %></h2>
        <div class="form-group row">
          <div class="col-xs-6">
            <%= select_tag(:plan_template_id, "<option value=\"\">#{_('Please select a template')}</option>", name: 'plan[template_id]',
                           class: 'form-control', 'aria-describedby': 'template-selection') %>
{'fraction_non_alphanumeric': 0.16202985074626866, 'fraction_numerical': 0.006925373134328359, 'mean_word_length': 2.0227354745579214, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 159, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5421246', 'n_tokens_mistral': 2456, 'n_tokens_neox': 2336, 'n_words': 623}