<commit_before><div class="admin-header">
  <h1>CITES Quotas</h1>
</div>

<div style="clear:both;"></div>

<%= form_tag duplicate_admin_quotas_url, :method => :post, :class => "form-horizontal" do %>
  <fieldset>
    <legend>Duplicate CITES quotas</legend>
    <div class="control-group">
      <%= label_tag "quotas[from_year]", 'From year', :class => "control-label" %>
      <div class="controls">
        <%= select_tag "quotas[from_year]", options_for_select(@years) %>
        <span class="help-block">Only quotas marked as current will be duplicated.</span>
      </div>
    </div>
    <h5>Dates</h5>
    <div class="control-group">
      <%= label_tag "quotas[start_date]", 'Start date', :class => 'control-label' %>
      <div class="controls">
        <%= text_field_tag "quotas[start_date]", Time.now.beginning_of_year.strftime("%d/%m/%Y"), :class => "quota datepicker" %>
        <span class="help-block">New quota year will be extracted from start date</span>
      </div>
    </div>
    <div class="control-group">
      <%= label_tag "quotas[end_date]", 'End date', :class => 'control-label' %>
      <div class="controls">
        <%= text_field_tag "quotas[end_date]", Time.now.end_of_year.strftime("%d/%m/%Y"), :class => "quota datepicker" %>
      </div>
    </div>
    <div class="control-group">
      <%= label_tag "quotas[publication_date]", 'Publication date', :class => 'control-label' %>
      <div class="controls">
        <%= text_field_tag "quotas[publication_date]", Time.now.strftime("%d/%m/%Y"), :class => "quota datepicker" %>
      </div>
    </div>
    <h5 class="toggle-extra-options">Taxon Concepts <span>+</span><span class="hide">-</span></h5>
    <div class="extra-options hide">
      <div class="control-group">
        <%= label_tag "quotas[included_taxon_concepts_ids]", "For", :class => 'control-label' %>
        <div class="controls">
          <%= hidden_field_tag "quotas[included_taxon_concepts_ids]", nil,
            :style => "width: 220px" %><commit_msg>Added url field to quotas duplication form<commit_after><div class="admin-header">
  <h1>CITES Quotas</h1>
</div>

<div style="clear:both;"></div>

<%= form_tag duplicate_admin_quotas_url, :method => :post, :class => "form-horizontal" do %>
  <fieldset>
    <legend>Duplicate CITES quotas</legend>
    <div class="control-group">
      <%= label_tag "quotas[from_year]", 'From year', :class => "control-label" %>
      <div class="controls">
        <%= select_tag "quotas[from_year]", options_for_select(@years) %>
        <span class="help-block">Only quotas marked as current will be duplicated.</span>
      </div>
    </div>
    <h5>Dates</h5>
    <div class="control-group">
      <%= label_tag "quotas[start_date]", 'Start date', :class => 'control-label' %>
      <div class="controls">
        <%= text_field_tag "quotas[start_date]", Time.now.beginning_of_year.strftime("%d/%m/%Y"), :class => "quota datepicker" %>
        <span class="help-block">New quota year will be extracted from start date</span>
      </div>
    </div>
    <div class="control-group">
      <%= label_tag "quotas[end_date]", 'End date', :class => 'control-label' %>
      <div class="controls">
        <%= text_field_tag "quotas[end_date]", Time.now.end_of_year.strftime("%d/%m/%Y"), :class => "quota datepicker" %>
      </div>
    </div>
    <div class="control-group">
      <%= label_tag "quotas[publication_date]", 'Publication date', :class => 'control-label' %>
      <div class="controls">
        <%= text_field_tag "quotas[publication_date]", Time.now.strftime("%d/%m/%Y"), :class => "quota datepicker" %>
      </div>
    </div>

    <h5 class="toggle-extra-options">Quotas <span>+</span><span class="hide">-</span></h5>
    <div class="extra-options hide">
      <div class="control-group">
        <%= label_tag "quotas[url]", "URL", :class => 'control-label' %>
        <div class="controls">
          <%= text_field_tag "quotas[url]", '', :class => 'quota' %>
        </div>
      </div>
    </div>
    <h5 class="toggle-extra-options">Taxon Concepts <span>+</span><span class="hide">-</span></h5>
    <div class="extra-options hide">
      <div class="control-group">
        <%= label_tag "quotas[included_taxon_concepts_ids]", "For", :class => 'control-label' %>
        <div class="controls">
          <%= hidden_field_tag "quotas[included_taxon_concepts_ids]", nil,
            :style => "width: 220px" %>
{'fraction_non_alphanumeric': 0.19764812302125734, 'fraction_numerical': 0.004522840343735866, 'mean_word_length': 3.5597938144329895, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 143, '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': '2356101', 'n_tokens_mistral': 1569, 'n_tokens_neox': 1483, 'n_words': 289}