<commit_before>.main-column
  fieldset
    legend= t '.situation_legend'

    /! Radios: main yes / no
    = f.input :was_employed,
      as: :radio_buttons,
      item_wrapper_class: 'block-label',
      wrapper_html: { :class => 'form-group-reveal reveal-publish-delegate' },
      input_html: { :class => 'reveal-publish-publisher'},
      reveal: { true => 'main', false => 'main' }

    /! reveal_current_situation
    fieldset#reveal_current_situation.reveal-subscribe.reveal-publish-delegate data-target="main" data-show-array='["true"]'
      legend= t '.current_situation_legend'

      /! Radios: 3 options
      = f.input :current_situation, input_html: { class: 'reveal-publish-publisher'},
        collection: FormOptions::CURRENT_SITUATION,
        as: :radio_buttons,
        item_wrapper_class: 'block-label',
        wrapper_html: { :class => 'form-group-reveal' },
        reveal: { 'still_employed'        => 'sub1',
                  'notice_period'         => 'sub1',
                  'employment_terminated' => 'sub1'}

      #employment_ppb_wrapper.reveal-subscribe data-target="sub1" data-show-array='["still_employed", "notice_period" , "employment_terminated"]'
        /! Employment details
        fieldset#employment_details
          legend= t '.employment_details_legend'

          = f.input :job_title

          = f.input :start_date

          = f.input :notice_period_end_date,
            wrapper_html: { :id => 'employment_notice_period_end_date',
                            :class => 'reveal-subscribe',
                            :'data-target' => 'sub1',
                            :'data-show-array' => '["notice_period"]' }

          = f.input :end_date,
            wrapper_html: { :id => 'employment_end_date',
                            :class => 'reveal-subscribe',
                            :'data-target' => 'sub1',
                            :'data-show-array' => '["employment_terminated"]' }

          /! Did you work - or get paid for - a period of notice? (optional)
          /! reveal on option 3
          = f.input :worked_notice_period_or_paid_in_lieu,
            wrapper_html: { :id => 'worked_notice_period_or_paid_in_lieu',
                            :class => 'reveal-subscribe reveal-publish-delegate toggle-content',
                            :'data-target' => 'sub1',
                            :'data-show-array' => '["employment_terminated"]' } do

            = f.input_field :worked_notice_period_or_paid_in_lieu,
              as: :radio_buttons,
              :class => 'reveal-publish-publisher',
              reveal: { true => 'sub2', false => 'sub2' },
              item_wrapper_class: 'block-label '

            /! reveal on option yes of the above
            = f.input :notice_pay_period_count,
              wrapper_html: { :id => 'reveal_notice_pay_period',
                              :class => 'reveal-subscribe panel-indent toggle-content',
                              :'data-target' => 'sub2',
                              :'data-show-array' => '["true"]' } do
              .inline-fields
                = f.input_field :notice_pay_period_count
                = f.input :notice_pay_period_type, label: false,
                  collection: FormOptions::NOTICE_PAY_PERIODS, as: :radio_buttons,
                  item_wrapper_class: 'slim-label'

          = f.input :average_hours_worked_per_week, input_html: {class: 'short-input'}

        /! Pay, pension and benefits
        fieldset#pay_pention_benefits
          legend= t '.pay_legend'

          = f.input :gross_pay,
            input_html: { :class => 'prefix-pound' } do
            .prefixed-field.inline-fields
              = f.input :gross_pay,
                label: false,
                hint:false

              = f.input :gross_pay_period_type,
                label: false,
                collection: FormOptions::PAY_PERIODS,
                as: :radio_buttons,
                item_wrapper_class: 'slim-label'

          = f.input :net_pay,
            input_html: { :class => 'prefix-pound' } do
            .prefixed-field.inline-fields
              = f.input :net_pay,
                label: false,
                hint:false
              = f.input :net_pay_period_type,
                label: false,
                collection: FormOptions::PAY_PERIODS,
                as: :radio_buttons,
                item_wrapper_class: 'slim-label'

          = f.input :enrolled_in_pension_scheme,
            as: :radio_buttons,
            item_wrapper_class: 'block-label'

          = f.input :benefit_details,
            as: :text,
            input_html: { rows: 5 }

      /! New job fieldset
      /! reveal on option 3
      fieldset#end_date_wrapper.reveal-subscribe data-target="sub1" data-show-array='["employment_terminated"]'
        legend= t '.new_job_legend'

        = f.input :found_new_job,
          as: :radio_buttons,
          item_wrapper_class: 'block-label',
          input_html: { :class => 'reveal-publish-publisher'},
          wrapper_html: { :class => 'form-group-reveal' },
          reveal: { true => 'sub3', false => 'sub3' }

        /! reveal on option yes of the above
        #reveal_new_job.panel-indent.reveal-subscribe data-target="sub3" data-show-array='["true"]'
          = f.input :new_job_start_date

          = f.input :new_job_gross_pay,
            input_html: { :class => 'prefix-pound' } do

          .prefixed-field.inline-fields
            = f.input :new_job_gross_pay,
              label: false,
              hint:false

            = f.input :new_job_gross_pay_frequency,
              label: false,
              label: false,
              collection: FormOptions::PAY_PERIODS,
              as: :radio_buttons,
              item_wrapper_class: 'slim-label'
<commit_msg>Fix for issue #216<commit_after>.main-column
  fieldset
    legend= t '.situation_legend'

    /! Radios: main yes / no
    = f.input :was_employed,
      as: :radio_buttons,
      item_wrapper_class: 'block-label',
      wrapper_html: { :class => 'form-group-reveal reveal-publish-delegate' },
      input_html: { :class => 'reveal-publish-publisher'},
      reveal: { true => 'main', false => 'main' }

    /! reveal_current_situation
    fieldset#reveal_current_situation.reveal-subscribe.reveal-publish-delegate.toggle-content data-target="main" data-show-array='["true"]'
      legend= t '.current_situation_legend'

      /! Radios: 3 options
      = f.input :current_situation, input_html: { class: 'reveal-publish-publisher'},
        collection: FormOptions::CURRENT_SITUATION,
        as: :radio_buttons,
        item_wrapper_class: 'block-label',
        wrapper_html: { :class => 'form-group-reveal' },
        reveal: { 'still_employed'        => 'sub1',
                  'notice_period'         => 'sub1',
                  'employment_terminated' => 'sub1'}

      #employment_ppb_wrapper.reveal-subscribe.toggle-content data-target="sub1" data-show-array='["still_employed", "notice_period" , "employment_terminated"]'
        /! Employment details
        fieldset#employment_details
          legend= t '.employment_details_legend'

          = f.input :job_title

          = f.input :start_date

          = f.input :notice_period_end_date,
            wrapper_html: { :id => 'employment_notice_period_end_date',
                            :class => 'reveal-subscribe',
                            :'data-target' => 'sub1',
                            :'data-show-array' => '["notice_period"]' }

          = f.input :end_date,
            wrapper_html: { :id => 'employment_end_date',
                            :class => 'reveal-subscribe',
                            :'data-target' => 'sub1',
                            :'data-show-array' => '["employment_terminated"]' }

          /! Did you work - or get paid for - a period of notice? (optional)
          /! reveal on option 3
          = f.input :worked_notice_period_or_paid_in_lieu,
            wrapper_html: { :id => 'worked_notice_period_or_paid_in_lieu',
                            :class => 'reveal-subscribe reveal-publish-delegate toggle-content',
                            :'data-target' => 'sub1',
                            :'data-show-array' => '["employment_terminated"]' } do

            = f.input_field :worked_notice_period_or_paid_in_lieu,
              as: :radio_buttons,
              :class => 'reveal-publish-publisher',
              reveal: { true => 'sub2', false => 'sub2' },
              item_wrapper_class: 'block-label '

            /! reveal on option yes of the above
            = f.input :notice_pay_period_count,
              wrapper_html: { :id => 'reveal_notice_pay_period',
                              :class => 'reveal-subscribe panel-indent toggle-content',
                              :'data-target' => 'sub2',
                              :'data-show-array' => '["true"]' } do
              .inline-fields
                = f.input_field :notice_pay_period_count
                = f.input :notice_pay_period_type, label: false,
                  collection: FormOptions::NOTICE_PAY_PERIODS, as: :radio_buttons,
                  item_wrapper_class: 'slim-label'

          = f.input :average_hours_worked_per_week, input_html: {class: 'short-input'}

        /! Pay, pension and benefits
        fieldset#pay_pention_benefits
          legend= t '.pay_legend'

          = f.input :gross_pay,
            input_html: { :class => 'prefix-pound' } do
            .prefixed-field.inline-fields
              = f.input :gross_pay,
                label: false,
                hint:false

              = f.input :gross_pay_period_type,
                label: false,
                collection: FormOptions::PAY_PERIODS,
                as: :radio_buttons,
                item_wrapper_class: 'slim-label'

          = f.input :net_pay,
            input_html: { :class => 'prefix-pound' } do
            .prefixed-field.inline-fields
              = f.input :net_pay,
                label: false,
                hint:false
              = f.input :net_pay_period_type,
                label: false,
                collection: FormOptions::PAY_PERIODS,
                as: :radio_buttons,
                item_wrapper_class: 'slim-label'

          = f.input :enrolled_in_pension_scheme,
            as: :radio_buttons,
            item_wrapper_class: 'block-label'

          = f.input :benefit_details,
            as: :text,
            input_html: { rows: 5 }

      /! New job fieldset
      /! reveal on option 3
      fieldset#end_date_wrapper.reveal-subscribe.toggle-content data-target="sub1" data-show-array='["employment_terminated"]'
        legend= t '.new_job_legend'

        = f.input :found_new_job,
          as: :radio_buttons,
          item_wrapper_class: 'block-label',
          input_html: { :class => 'reveal-publish-publisher'},
          wrapper_html: { :class => 'form-group-reveal' },
          reveal: { true => 'sub3', false => 'sub3' }

        /! reveal on option yes of the above
        #reveal_new_job.panel-indent.reveal-subscribe.toggle-content data-target="sub3" data-show-array='["true"]'
          = f.input :new_job_start_date

          = f.input :new_job_gross_pay,
            input_html: { :class => 'prefix-pound' } do

          .prefixed-field.inline-fields
            = f.input :new_job_gross_pay,
              label: false,
              hint:false

            = f.input :new_job_gross_pay_frequency,
              label: false,
              label: false,
              collection: FormOptions::PAY_PERIODS,
              as: :radio_buttons,
              item_wrapper_class: 'slim-label'

{'fraction_non_alphanumeric': 0.11703855689493033, 'fraction_numerical': 0.003334188253398307, 'mean_word_length': 1.7945532728141425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 71, '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': '3417207', 'n_tokens_mistral': 3603, 'n_tokens_neox': 3388, 'n_words': 619}