<commit_before><ul class="nav nav-tabs">
  <li class="active"><a href="#search">Search for a reference</a></li>
  <li><a href="#new">Create new reference</a></li>
</ul>

<div class="tab-content">
  <div class="tab-pane fade in active reference_search_form" id="search">
    <%= nested_form_for [:admin, @taxon_concept], :remote => true do |f| %>
      <label>Search by title, author or year:</label>
      <%= text_field_tag 'reference_search', nil, :class => 'typeahead' %>

      <%= f.link_to_add "Add a reference", :taxon_concept_references, :class => "hidden", :id => "addReference" %>
      <% f.fields_for :taxon_concept_references do |ff| %>
        <%= ff.link_to_remove delete_icon %>

        <span></span> - 
        <%= ff.text_field :reference_id, :class => "hidden" %>
        <%= ff.text_field :taxon_concept_id, :class => "hidden" %>
        <%= ff.fields_for :data do |fff| %>
          <%= fff.check_box :usr_is_std_ref %>
          <label>Is Standard?</label>
        <% end %>
      <% end %>
    <% end %>
  </div>

  <div class="tab-pane fade" id="new">
    <%= nested_form_for [:admin, @taxon_concept], :remote => true do |f| %>
      <%= f.link_to_add "Add a reference", :references %>

      <% f.fields_for :references do |ff| %>
        <label>Title</label>
        <%= ff.text_field :title %>

        <label>Author</label>
        <%= ff.text_field :author %>

        <label>Year</label>
        <%= ff.text_field :year %>

        <hr>
      <% end %>
    <% end %>
  </div>
</div>
<commit_msg>Fixed double requests for Taxon Concept Reference addition<commit_after><ul class="nav nav-tabs">
  <li class="active"><a href="#search">Search for a reference</a></li>
  <li><a href="#new">Create new reference</a></li>
</ul>

<%= nested_form_for [:admin, @taxon_concept], :remote => true do |f| %>
  <div class="tab-content">
    <div class="tab-pane fade in active reference_search_form" id="search">
      <label>Search by title, author or year:</label>
      <%= text_field_tag 'reference_search', nil, :class => 'typeahead' %>

      <%= f.link_to_add "Add a reference", :taxon_concept_references, :class => "hidden", :id => "addReference" %>
      <% f.fields_for :taxon_concept_references do |ff| %>
        <%= ff.link_to_remove delete_icon %>

        <span></span> - 
        <%= ff.text_field :reference_id, :class => "hidden" %>
        <%= ff.text_field :taxon_concept_id, :class => "hidden" %>
        <%= ff.fields_for :data do |fff| %>
          <%= fff.check_box :usr_is_std_ref %>
          <label>Is Standard?</label>
        <% end %>
      <% end %>
    </div>

    <div class="tab-pane fade" id="new">
      <%= f.link_to_add "Add a reference", :references %>

      <% f.fields_for :references do |ff| %>
        <label>Title</label>
        <%= ff.text_field :title %>

        <label>Author</label>
        <%= ff.text_field :author %>

        <label>Year</label>
        <%= ff.text_field :year %>

        <hr>
      <% end %>
    </div>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.1893687707641196, 'fraction_numerical': 0.0, 'mean_word_length': 2.8210659898477157, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 112, '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': '6341943', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1018, 'n_words': 221}