<commit_before>= content_for :page_title, flush: true do
  = t(".page_title.#{present(@claim).type_identifier}")

= render partial: 'layouts/header', locals: { page_heading: t('.page_heading') }

.govuk-grid-row
  .govuk-grid-column-two-thirds
    = form_with model: @certification, url: external_users_claim_certification_path(@claim), builder: GdsAdpFormBuilder, local: true do |f|
      = f.govuk_error_summary

      - if @claim.agfs?
        = t('.agfs_claim_collection_html')

        = f.govuk_collection_radio_buttons :certification_type_id,
          CertificationType.post_may_2015.agfs,
          :id,
          :name,
          legend: { text: t('.certification_type_post_may_2015'), size: 's' }

        = f.govuk_collection_radio_buttons :certification_type_id,
          CertificationType.pre_may_2015.agfs,
          :id,
          :name,
          legend: { text: t('.certification_type_pre_may_2015'), size: 's' },
          hint: { text: t('.certification_type_pre_may_2015_hint') }

        = t('.agfs_claim_confirmation_info_html')

      - elsif @claim.is_a? Claim::LitigatorClaim
        = t('.lgfs_claim_html')

      - else
        = t('.other_claim_html')

      = f.govuk_text_field :certified_by,
        label: { text: t('.certified_by') },
        hint: { text: t('.certified_by_prompt_text') }

      = f.govuk_date_field :certification_date,
        legend: { text: t('.date'), size: 's' }

      = f.govuk_submit t('.submit')
      = govuk_link_button_secondary t('.return'), edit_polymorphic_path(@claim)<commit_msg>Update certification type radio group<commit_after>= content_for :page_title, flush: true do
  = t(".page_title.#{present(@claim).type_identifier}")

= render partial: 'layouts/header', locals: { page_heading: t('.page_heading') }

.govuk-grid-row
  .govuk-grid-column-two-thirds
    = form_with model: @certification, url: external_users_claim_certification_path(@claim), builder: GdsAdpFormBuilder, local: true do |f|
      = f.govuk_error_summary

      - if @claim.agfs?
        = t('.agfs_claim_collection_html')

        = f.govuk_radio_buttons_fieldset :certification_type_id,
          legend: { text: t('.certification_type_post_may_2015'), size: 's' } do
          - CertificationType.post_may_2015.agfs.each_with_index do |certification_type, index|
            = f.govuk_radio_button :certification_type_id, certification_type.id, label: { text: certification_type.name }, link_errors: index.zero?

        = f.govuk_radio_buttons_fieldset :certification_type_id,
          hint: { text: t('.certification_type_pre_may_2015_hint') },
          legend: { text: t('.certification_type_pre_may_2015'), size: 's' } do
          - CertificationType.pre_may_2015.agfs.each_with_index do |certification_type, index|
            = f.govuk_radio_button :certification_type_id, certification_type.id, label: { text: certification_type.name }

        = t('.agfs_claim_confirmation_info_html')

      - elsif @claim.is_a? Claim::LitigatorClaim
        = t('.lgfs_claim_html')

      - else
        = t('.other_claim_html')

      = f.govuk_text_field :certified_by,
        label: { text: t('.certified_by') },
        hint: { text: t('.certified_by_prompt_text') }

      = f.govuk_date_field :certification_date,
        legend: { text: t('.date'), size: 's' }

      = f.govuk_submit t('.submit')
      = govuk_link_button_secondary t('.return'), edit_polymorphic_path(@claim)
{'fraction_non_alphanumeric': 0.13002915451895045, 'fraction_numerical': 0.011661807580174927, 'mean_word_length': 3.376275510204082, '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': '2976108', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1135, 'n_words': 181}