<commit_before>- content_for :heading
  = t('.heading')

- content_for :sub_heading
  = @case.number

= render partial: 'layouts/header'

.grid-row
  .column-two-thirds
    p
      | You are uploading the response to:
      br
      strong = "#{@case.subject}"

    - if @case.requires_clearance?
      | It will then be with &nbsp;
      strong
        | DACU Disclosure &nbsp;
      | with status &nbsp;
      strong
        | Pending clearance
    p

.grid-row
  .column-two-thirds
    p.form-hint
      = t('.upload_hint_copy')

.grid-row
  section.case-main
    = form_tag upload_responses_case_path(@case),
               class: 'direct-upload' do
      .dropzone{ data-dz-template=render('shared/dropzone_js').gsub('"', '\'').html_safe
                 data-form-data=@s3_direct_post.fields.to_json
                 data-url= @s3_direct_post.url
                 data-host= URI.parse(@s3_direct_post.url).host
                 data-accepted-files=accepted_case_attachment_types }

        .dz-default.dz-message.grid-row
          .column-one-third.arrow-icon
            p
          .column-one-half
          span.normal= "Drag and drop files here"
          .bold-normal= "or"
          .button-secondary
            = t('common.choose_file')

      .actions
        = submit_tag t('.upload_response'), class: 'button'

<commit_msg>CT-731 Refactor upload page to use partial<commit_after>- content_for :heading
  = t('.heading')

- content_for :sub_heading
  = @case.number

= render partial: 'layouts/header'

- if @case.requires_clearance?
  .form-group

    = render partial: 'cases/clearance_copy',
            locals: {case_details: @case,
                    status: "Pending clearance",
                    team: @case.approving_team.name,
                    action: "uploading"}


.grid-row
  .column-two-thirds
    p.form-hint
      = t('.upload_hint_copy')

.grid-row
  section.case-main
    = form_tag upload_responses_case_path(@case),
               class: 'direct-upload' do
      .dropzone{ data-dz-template=render('shared/dropzone_js').gsub('"', '\'').html_safe
                 data-form-data=@s3_direct_post.fields.to_json
                 data-url= @s3_direct_post.url
                 data-host= URI.parse(@s3_direct_post.url).host
                 data-accepted-files=accepted_case_attachment_types }

        .dz-default.dz-message.grid-row
          .column-one-third.arrow-icon
            p
          .column-one-half
          span.normal= "Drag and drop files here"
          .bold-normal= "or"
          .button-secondary
            = t('common.choose_file')

      .actions
        = submit_tag t('.upload_response'), class: 'button'


{'fraction_non_alphanumeric': 0.1218236173393124, 'fraction_numerical': 0.0033632286995515697, 'mean_word_length': 1.9877232142857142, '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': '2358039', 'n_tokens_mistral': 860, 'n_tokens_neox': 836, 'n_words': 151}