<commit_before>    <%= f.input :organiser, :input_html => { :disabled => locked_for_edits } %>

    <%= f.input :short_description,
                :label => 'Short description',
                :hint => 'Short description shown in search results.',
                :input_html => {:disabled => locked_for_edits } %>

    <%= f.input :body,
                :as => :text,
                :label => 'Body',
                :hint => 'The full description of this business support',
                :input_html => {:rows => 10, :disabled => locked_for_edits } %>

    <%= f.input :eligibility,
                :as => :text,
                :label => 'Eligibility',
                :input_html => {:rows => 3, :disabled => locked_for_edits } %>

    <%= f.input :evaluation,
                :as => :text,
                :label => 'Evaluation',
                :input_html => {:rows => 3, :disabled => locked_for_edits } %>

    <%= f.input :additional_information,
                :as => :text,
                :label => 'Additional information',
                :input_html => {:rows => 3, :disabled => locked_for_edits } %>

    <%= f.input :contact_details,
                :as => :text,
                :label => 'Contact details',
                :hint => 'Email, telephone, address and postcode of the business support authority or company',
                :input_html => {:rows => 3, :disabled => locked_for_edits } %>
    <div class="row">
      <div class="col-md-6">
    <%= f.input :max_employees,
                :label => 'Max employees',
                :hint => 'Maximum number of employees in qualifying business',
                :input_html => {:disabled => locked_for_edits } %>

    <%= f.input :min_value,
                :label => 'Min value',
                :hint => "The smallest amount of support available",
                :input_html => {:disabled => locked_for_edits } %>

    <%= f.input :max_value,
                :label => 'Max value',
                :hint => "The largest amount of support available",
                :input_html => { :disabled => locked_for_edits } %>
      </div>
    </div>
    <%= f.input :will_continue_on,
                :label => 'Will continue on',
                :hint => 'Text to accompany external website link',
                :input_html => {:disabled => locked_for_edits } %>

    <%= f.input :continuation_link,
                :label => 'Continuation link',
                :hint => 'Link to external website for this business support',
                :input_html => {:disabled => locked_for_edits } %>
    <hr/>
    <div class="row">
      <div class="col-md-4">
        <%= f.input :priority, :as => :select, :collection => [["Low",0],["Normal",1],["High",2]], :input_html => { :disabled => locked_for_edits } %>

        <% date_error = f.object.errors[:start_date]
       error_class = date_error and !date_error.empty? ? ' error' : '' -%>
      </div>
    </div>
    <hr/>
    <div class="form-group<%= error_class %> date-picker">
      <h3>Scheme start/end date</h3>
      <label for="edition[start_date]">Start date</label>
      <div class="form-inline">
        <%= f.date_select :start_date, { :include_blank => true }, { :class => "form-control date-picker#{error_class}", :disabled => locked_for_edits } %>
        <% if f.object.errors.has_key?(:start_date) -%>
        <span class="help-inline"><%= f.object.errors[:start_date].join(', ') %></span>
        <% end -%>
      </div><commit_msg>Use input helper classes on business support form<commit_after>    <%= f.input :organiser,
                :input_html => { :disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :short_description,
                :label => 'Short description',
                :hint => 'Short description shown in search results.',
                :input_html => {:disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :body,
                :as => :text,
                :label => 'Body',
                :hint => 'The full description of this business support',
                :input_html => {:rows => 10, :disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :eligibility,
                :as => :text,
                :label => 'Eligibility',
                :input_html => {:rows => 3, :disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :evaluation,
                :as => :text,
                :label => 'Evaluation',
                :input_html => {:rows => 3, :disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :additional_information,
                :as => :text,
                :label => 'Additional information',
                :input_html => {:rows => 3, :disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :contact_details,
                :as => :text,
                :label => 'Contact details',
                :hint => 'Email, telephone, address and postcode of the business support authority or company',
                :input_html => {:rows => 3, :disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :max_employees,
                :label => 'Max employees',
                :hint => 'Maximum number of employees in qualifying business',
                :input_html => {:disabled => locked_for_edits, class: 'input-md-2' } %>

    <%= f.input :min_value,
                :label => 'Min value',
                :hint => "The smallest amount of support available",
                :input_html => {:disabled => locked_for_edits, class: 'input-md-2' } %>

    <%= f.input :max_value,
                :label => 'Max value',
                :hint => "The largest amount of support available",
                :input_html => { :disabled => locked_for_edits, class: 'input-md-2' } %>

    <%= f.input :will_continue_on,
                :label => 'Will continue on',
                :hint => 'Text to accompany external website link',
                :input_html => {:disabled => locked_for_edits, class: 'input-md-7' } %>

    <%= f.input :continuation_link,
                :label => 'Continuation link',
                :hint => 'Link to external website for this business support',
                :input_html => {:disabled => locked_for_edits, class: 'input-md-7' } %>
    <hr/>

    <%= f.input :priority, :as => :select, :collection => [["Low",0],["Normal",1],["High",2]], :input_html => { :disabled => locked_for_edits, class: 'input-md-2' } %>

    <% date_error = f.object.errors[:start_date]
       error_class = date_error and !date_error.empty? ? ' error' : '' -%>

    <hr/>
    <div class="form-group<%= error_class %> date-picker">
      <h3>Scheme start/end date</h3>
      <label for="edition[start_date]">Start date</label>
      <div class="form-inline">
        <%= f.date_select :start_date, { :include_blank => true }, { :class => "form-control date-picker#{error_class}", :disabled => locked_for_edits } %>
        <% if f.object.errors.has_key?(:start_date) -%>
        <span class="help-inline"><%= f.object.errors[:start_date].join(', ') %></span>
        <% end -%>
      </div>
{'fraction_non_alphanumeric': 0.16673684210526316, 'fraction_numerical': 0.005192982456140351, 'mean_word_length': 2.071551724137931, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 191, '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': '1559670', 'n_tokens_mistral': 2264, 'n_tokens_neox': 2056, 'n_words': 494}