<commit_before>- content_for :page_title
  = "Benefits"

= form_for @form, as: :application, url: application_benefits_path, method: :post, html: { autocomplete: 'off' } do |f|

  .govuk-grid-row
    .govuk-grid-column-two-thirds
      h1.govuk-heading-xl Benefits the applicant is receiving

      -if @dwp_state=='offline'
        .page-error.util_mb-medium.govuk-error-summary__body
          = t('error_messages.benefit_check.dwp_unavailable')

      .govuk-form-group.group-level
        fieldset.govuk-fieldset
          legend.visuallyhidden Does the applicant receive benefits?
          = f.label :benefits, class: 'govuk-label'
          - if @form.errors[:benefits].present?
            span.govuk-error-message
              = f.label :benefits, @form.errors[:benefits].join(', '), class: 'error'
          = f.hidden_field :benefits, value: nil
          .govuk-radios.govuk-radios--small
            .govuk-radios__item
              = f.radio_button :benefits, 'false', class: 'govuk-radios__input'
              = f.label t('benefits_false', scope: @form.i18n_scope), for: 'application_benefits_false', class: 'govuk-label govuk-radios__label'
            .govuk-radios__item
              = f.radio_button :benefits, 'true', class: 'govuk-radios__input'
              = f.label t('benefits_true', scope: @form.i18n_scope), for: 'application_benefits_true', class: 'govuk-label govuk-radios__label'

      = f.submit 'Next', class: 'govuk-button'

    aside.govuk-grid-column-one-third
      .guidance
        h2.govuk-heading-m Benefits
        ul.govuk-list.govuk-list--bullet
          li Income-based Jobseeker's Allowance <span class="hint">(JSA)</span>
          li Income-related Employment and Support Allowance <span class="hint">(ESA)</span>
          li Income Support
          li Universal Credit <span class="hint">(and you’re earning less than £6,000 a year)</span>
          li Pension Credit <span class="hint">(guarantee credit)</span>
          li Scottish Civil Legal Aid <span class="hint">(not Advice and Assistance or Advice by Way of Representation)</span>
        p: strong = link_to 'See the guides', guide_path, target: 'blank'<commit_msg>RST-3760<commit_after>- content_for :page_title
  = "Benefits"

= form_for @form, as: :application, url: application_benefits_path, method: :post, html: { autocomplete: 'off' } do |f|

  .govuk-grid-row
    .govuk-grid-column-two-thirds
      h1.govuk-heading-xl Benefits the applicant is receiving

      -if @dwp_state=='offline'
        .page-error.util_mb-medium.govuk-error-summary__body
          = t('error_messages.benefit_check.dwp_unavailable')

      .govuk-form-group.group-level
        fieldset.govuk-fieldset
          legend.visuallyhidden Does the applicant receive benefits?
          = f.label :benefits, class: 'govuk-label'
          - if @form.errors[:benefits].present?
            span.govuk-error-message
              = f.label :benefits, @form.errors[:benefits].join(', '), class: 'error'
          = f.hidden_field :benefits, value: nil
          .govuk-radios.govuk-radios--small
            .govuk-radios__item
              = f.radio_button :benefits, 'false', class: 'govuk-radios__input'
              = f.label t('benefits_false', scope: @form.i18n_scope), for: 'application_benefits_false', class: 'govuk-label govuk-radios__label'
            .govuk-radios__item
              = f.radio_button :benefits, 'true', class: 'govuk-radios__input'
              = f.label t('benefits_true', scope: @form.i18n_scope), for: 'application_benefits_true', class: 'govuk-label govuk-radios__label'

      = f.submit 'Next', class: 'govuk-button'

    aside.govuk-grid-column-one-third
      .guidance
        h2.govuk-heading-m Benefits
        ul.govuk-list.govuk-list--bullet
          li Income-based Jobseeker's Allowance <span class="hint">(JSA)</span>
          li Income-related Employment and Support Allowance <span class="hint">(ESA)</span>
          li Income Support
          li Universal Credit <span class="hint">(and you’re earning less than £6,000 a year)</span>
          li Pension Credit <span class="hint">(guarantee credit)</span>
        p: strong = link_to 'See the guides', guide_path, target: 'blank'
{'fraction_non_alphanumeric': 0.125945179584121, 'fraction_numerical': 0.005671077504725898, 'mean_word_length': 2.7964125560538116, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5523191', 'n_tokens_mistral': 1412, 'n_tokens_neox': 1338, 'n_words': 289}