<commit_before>= render "steps_progress_bar", cant_access_future: true, previous_questions: step

.steps-progress-content
  header.page-header.group.page-header-wider
    div
      h1
        - if @form_answer.award_type == "promotion"
          ' Nominate for the Enterprise Promotion Award
        - else
          = "Apply for the #{@form_answer.award_type.capitalize} Award"
      h2
        ' Step 1 of 6: Eligibility


  .article-container.article-container-wider
    article.group role="article"
      .inner.step.current
        - if step && step.to_s != "wicked_finish"
          = simple_form_for @eligibility, as: :eligibility, url: wizard_path(step, form_id: @form_answer.id, skipped: params[:skipped]), method: :put do |f|
            .current-question.qae-form#current-question
              .question
                h2
                  = @eligibility.class.label(step)
                - if @eligibility.is_a?(Eligibility::Basic)
                  = render "form_award_eligibilities/basic_questions/#{step.to_s}", f: f
                - else
                  = render("form_award_eligibilities/questions/#{step.to_s}", f: f) rescue render("form_award_eligibilities/questions/question", f: f, question: step.to_s)

              .next-question
                = f.submit "Continue", class: "button medium"
        - else
          .previous-answers
            - if @form_answer.eligible?
              p Before you start your application, please check your eligibility answers are correct.
            - else
              .eligibility-failed
                p
                  - if @form_answer.award_type == "promotion"
                    ' Your nominee is
                  - else
                    ' At the moment you are
                  strong not eligible
                  '  for this award, please see questions below for the reason. If you think you made a mistake in the eligibility questionnaire, you can change your answer.

                p
                  - if @form_answer.award_type == "promotion"
                    ' Also, you may consider nominating someone else or your organisation
                  - else
                    ' Also, you
                  ' might be eligible for awards in other categories. Go to the
                  = link_to "applications page", dashboard_path
                  - if @form_answer.award_type == "promotion"
                    '  to nominate/apply.
                  - else
                    '  to apply.

      = render "previous_answers"

      - if (!step || step.to_s == "wicked_finish")
        - if @form_answer.eligible?
          .inner.step.current
            .previous-answers
              .text-right
                = link_to "Continue", [:award_info, @form_answer.award_type, form_id: @form_answer.id], class: "button medium"
        - else
          footer<commit_msg>COPY Ineligible tweak<commit_after>= render "steps_progress_bar", cant_access_future: true, previous_questions: step

.steps-progress-content
  header.page-header.group.page-header-wider
    div
      h1
        - if @form_answer.award_type == "promotion"
          ' Nominate for the Enterprise Promotion Award
        - else
          = "Apply for the #{@form_answer.award_type.capitalize} Award"
      h2
        ' Step 1 of 6: Eligibility


  .article-container.article-container-wider
    article.group role="article"
      .inner.step.current
        - if step && step.to_s != "wicked_finish"
          = simple_form_for @eligibility, as: :eligibility, url: wizard_path(step, form_id: @form_answer.id, skipped: params[:skipped]), method: :put do |f|
            .current-question.qae-form#current-question
              .question
                h2
                  = @eligibility.class.label(step)
                - if @eligibility.is_a?(Eligibility::Basic)
                  = render "form_award_eligibilities/basic_questions/#{step.to_s}", f: f
                - else
                  = render("form_award_eligibilities/questions/#{step.to_s}", f: f) rescue render("form_award_eligibilities/questions/question", f: f, question: step.to_s)

              .next-question
                = f.submit "Continue", class: "button medium"
        - else
          .previous-answers
            - if @form_answer.eligible?
              p Before you start your application, please check your eligibility answers are correct.
            - else
              .eligibility-failed
                p
                  - if @form_answer.award_type == "promotion"
                    ' Your nominee is
                  - else
                    ' At the moment you are
                  strong not eligible
                  '  for this award. Please see your answers below for the reason. If you think you made a mistake in the eligibility questionnaire, you can change your answer.

                p
                  - if @form_answer.award_type == "promotion"
                    ' Also, you may consider nominating someone else or your organisation
                  - else
                    ' Also, you
                  ' might be eligible for awards in other categories. Go to the
                  = link_to "applications page", dashboard_path
                  - if @form_answer.award_type == "promotion"
                    '  to nominate/apply.
                  - else
                    '  to apply.

      = render "previous_answers"

      - if (!step || step.to_s == "wicked_finish")
        - if @form_answer.eligible?
          .inner.step.current
            .previous-answers
              .text-right
                = link_to "Continue", [:award_info, @form_answer.award_type, form_id: @form_answer.id], class: "button medium"
        - else
          footer
{'fraction_non_alphanumeric': 0.08722849695916594, 'fraction_numerical': 0.0017376194613379669, 'mean_word_length': 1.6464367816091954, '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': '247873', 'n_tokens_mistral': 1624, 'n_tokens_neox': 1492, 'n_words': 408}