<commit_before>.row
  .col-xs-12
    .page-header.page-header-nav
      = link_to "‹ Back to overview", assessor_form_answers_path, class: "btn btn-link btn-lg"
      .pull-right
        / TODO Prev/next case links
        = link_to "‹ Prev case", "#", class: "btn btn-link btn-lg"
        = link_to "Next case ›", "#", class: "btn btn-link btn-lg"

.row
  .col-md-4
    .show-sidebar
      .well.section-applicant-details
        - if @form_answer.urn.present?
          h1
            = @form_answer.urn
        h2 = @form_answer.company_name
        p = @form_answer.award_type


      .well.section-applicant-status
        / This is where you change the application status
        h2
          ' Status
          small Updated by Admin User - 28/09/15 at 08:03

        .btn-group
          button.btn.btn-link.dropdown-toggle type="button" data-toggle="dropdown" aria-expanded="false"
            = @form_answer.progress_text_short
            span.caret
          ul.dropdown-menu role="menu"
            - FormAnswerStatusFiltering.collection.each do |state|
              li.checkbox role='presentation'
                = link_to state[0]
            li.divider
            - FormAnswerStatusFiltering::SUB_OPTIONS.each do |key, val|
              li.checkbox role="presentation"
                = link_to val[:label]
        p Case Summary - Missing
        p Audit Certificate - Missing

      .well
        .sidebar-section
          h2
            ' Application & Supporting Docs
          / TODO uploaded docs by applicant (Can't delete)
          ul.list-unstyled.list-actions
            li
              = link_to "#"
                span.glyphicon.glyphicon-file
                ' company-application.pdf
            li
              = link_to "#"
                span.glyphicon.glyphicon-file
                ' company-compliance-outline.pdf

        .sidebar-section
          / TODO Auto generated Docs
          h2
            ' Post Shortlisting Docs
          ul.list-unstyled.list-actions
            li
              = link_to "View/print Audit Certificate"
            li
              = link_to "View/print Case Summary"

        / TODO Only appears for EP but for now we need to think more on it
        /.sidebar-section
          h2
            ' EP ?

        .sidebar-section
          h2
            ' Other Docs
          .document-list
            - unless @form_answer.form_answer_attachments.any?
              p.p-empty No documents have been attached to this case.
            ul.list-unstyled.list-actions
              - if @form_answer.form_answer_attachments.any?
                = render(@form_answer.form_answer_attachments)
          /   br
          / = form_for [:admin, @form_answer, @form_answer.form_answer_attachments.build], html: { multipart: true} do |form|
          /   span.btn.btn-default.btn-attachment
          /     span.attachment-text
          /       span.glyphicon.glyphicon-paperclip
          /       ' Attach Document
          /     = form.file_field :file
          /   = form.submit 'Attach Document', class: 'if-js-hide'

      = render("admin/form_answers/assessors_section")
  .col-md-8.submitted-view
    = render "submitted_view"

<commit_msg>Fix integration tests<commit_after>.row
  .col-xs-12
    .page-header.page-header-nav
      = link_to "‹ Back to overview", assessor_form_answers_path, class: "btn btn-link btn-lg"
      .pull-right
        / TODO Prev/next case links
        = link_to "‹ Prev case", "#", class: "btn btn-link btn-lg"
        = link_to "Next case ›", "#", class: "btn btn-link btn-lg"

.row.inline-form-view
  .col-md-4
    .show-sidebar
      .well.section-applicant-details
        - if @form_answer.urn.present?
          h1
            = @form_answer.urn
        h2 = @form_answer.company_name
        p = @form_answer.award_type


      .well.section-applicant-status
        / This is where you change the application status
        h2
          ' Status
          small Updated by Admin User - 28/09/15 at 08:03

        .btn-group
          button.btn.btn-link.dropdown-toggle type="button" data-toggle="dropdown" aria-expanded="false"
            = @form_answer.progress_text_short
            span.caret
          ul.dropdown-menu role="menu"
            - FormAnswerStatusFiltering.collection.each do |state|
              li.checkbox role='presentation'
                = link_to state[0]
            li.divider
            - FormAnswerStatusFiltering::SUB_OPTIONS.each do |key, val|
              li.checkbox role="presentation"
                = link_to val[:label]
        p Case Summary - Missing
        p Audit Certificate - Missing

      .well
        .sidebar-section
          h2
            ' Application & Supporting Docs
          / TODO uploaded docs by applicant (Can't delete)
          ul.list-unstyled.list-actions
            li
              = link_to "#"
                span.glyphicon.glyphicon-file
                ' company-application.pdf
            li
              = link_to "#"
                span.glyphicon.glyphicon-file
                ' company-compliance-outline.pdf

        .sidebar-section
          / TODO Auto generated Docs
          h2
            ' Post Shortlisting Docs
          ul.list-unstyled.list-actions
            li
              = link_to "View/print Audit Certificate"
            li
              = link_to "View/print Case Summary"

        / TODO Only appears for EP but for now we need to think more on it
        /.sidebar-section
          h2
            ' EP ?

        .sidebar-section
          h2
            ' Other Docs
          .document-list
            - unless @form_answer.form_answer_attachments.any?
              p.p-empty No documents have been attached to this case.
            ul.list-unstyled.list-actions
              - if @form_answer.form_answer_attachments.any?
                = render(@form_answer.form_answer_attachments)
          /   br
          / = form_for [:admin, @form_answer, @form_answer.form_answer_attachments.build], html: { multipart: true} do |form|
          /   span.btn.btn-default.btn-attachment
          /     span.attachment-text
          /       span.glyphicon.glyphicon-paperclip
          /       ' Attach Document
          /     = form.file_field :file
          /   = form.submit 'Attach Document', class: 'if-js-hide'

      = render("admin/form_answers/assessors_section")
  .col-md-8.submitted-view
    = render "submitted_view"


{'fraction_non_alphanumeric': 0.09102148045124402, 'fraction_numerical': 0.006799567300262711, 'mean_word_length': 1.56215360253365, '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': '3009154', 'n_tokens_mistral': 1923, 'n_tokens_neox': 1825, 'n_words': 410}