<commit_before>= form_for @query, url: search_cases_path, method: :get do |f|
  = hidden_field_tag('search_query[filter_type]', 'final_deadline')
  = hidden_field_tag('search_query[parent_id]', @parent_id)
  fieldset
    legend
      .bold-medium
        = "Filter by final deadline dates"

    .grid-row
      .column-full
        .js-quick-links
          span#quick-link-label.bold-small
             = "Due"
          ul.quick-link-options
            li.quick-link-option--first
              - today = @query.available_deadlines[:date_value_1]
              a { href="#"
                  aria-describeby="quick-link-label"
                  data-external-deadline-from=today
                  data-external-deadline-to=today
                }
                = "Today"
            li.quick-link-option
              - days_3 = @query.available_deadlines[:date_value_2]
              a { href="#"
                  aria-describeby="quick-link-label"
                  data-external-deadline-from=today
                  data-external-deadline-to=days_3
                }
                = "In the next 3 days"
            li.quick-link-option
              - days_10 = @query.available_deadlines[:date_value_3]
              a { href="#"
                  aria-describeby="quick-link-label"
                  data-external-deadline-from=today
                  data-external-deadline-to=days_10
                  }
                = "In the next 10 days"

    hr
      .form-group
        = f.gov_uk_date_field :external_deadline_from,
                { legend_text: t('cases.search.external_deadline_from'),
                        form_hint_text: t('cases.search.external_deadline_hint') }

        = f.gov_uk_date_field :external_deadline_to,
                { legend_text: t('cases.search.external_deadline_to'),
                        form_hint_text: t('cases.search.external_deadline_hint') }

      .actions
        = submit_tag 'Apply filter', class: 'button'<commit_msg>add form group back in<commit_after>= form_for @query, url: search_cases_path, method: :get do |f|
  = hidden_field_tag('search_query[filter_type]', 'final_deadline')
  = hidden_field_tag('search_query[parent_id]', @parent_id)
  fieldset
    legend
      .bold-medium
        = "Filter by final deadline dates"

    .grid-row
      .column-full
        .js-quick-links
          span#quick-link-label.bold-small
             = "Due"
          ul.quick-link-options
            li.quick-link-option--first
              - today = @query.available_deadlines[:date_value_1]
              a { href="#"
                  aria-describeby="quick-link-label"
                  data-external-deadline-from=today
                  data-external-deadline-to=today
                }
                = "Today"
            li.quick-link-option
              - days_3 = @query.available_deadlines[:date_value_2]
              a { href="#"
                  aria-describeby="quick-link-label"
                  data-external-deadline-from=today
                  data-external-deadline-to=days_3
                }
                = "In the next 3 days"
            li.quick-link-option
              - days_10 = @query.available_deadlines[:date_value_3]
              a { href="#"
                  aria-describeby="quick-link-label"
                  data-external-deadline-from=today
                  data-external-deadline-to=days_10
                  }
                = "In the next 10 days"

    hr
      .form-group
        = f.gov_uk_date_field :external_deadline_from,
                { legend_text: t('cases.search.external_deadline_from'),
                        form_hint_text: t('cases.search.external_deadline_hint') }

      .form-group
        = f.gov_uk_date_field :external_deadline_to,
                { legend_text: t('cases.search.external_deadline_to'),
                        form_hint_text: t('cases.search.external_deadline_hint') }

      .actions
        = submit_tag 'Apply filter', class: 'button'
{'fraction_non_alphanumeric': 0.10402600650162541, 'fraction_numerical': 0.006001500375093774, 'mean_word_length': 1.6109660574412532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1214040', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1132, 'n_words': 168}