<commit_before>- if @claim.allows_fixed_fees?

  #fixed-fees.mod-fees
    %h2.bold-medium
      = t('.fixed_fees')
    .form-hint.xsmall
      = t('.prompt_text_html')

    = f.fields_for :fixed_fee do |ff|

      .expense-group.nested-fields.js-block{data:{"type":"fees", autovat: @claim.apply_vat? ? "true" : "false"}}
        .grid-row
          .column-two-thirds
            %label.form-label
              = t('.fee_type')
            = ff.anchored_attribute 'fee_type'
            = @claim.case_type.fixed_fee_type.description
            = ff.hidden_field :fee_type_id, value: @claim.case_type.fixed_fee_type.id
            = validation_error_message(@error_presenter, :fee_type)

          .column-one-third.condensed.js-expense-location

        .grid-row
          .column-two-thirds
            - ff.object.dates_attended << DateAttended.new unless ff.object.dates_attended.any?
            = ff.fields_for :dates_attended do |date_attended|
              = render 'date_generic_fields', f: date_attended, field_id: 'fixed_fee.date_attended_1_date'

          .column-one-third.condensed.js-expense-amount.fee-total
            %label.form-label Total

            = ff.anchored_attribute 'amount'
            %span.currency-indicator>< &pound;
            = ff.text_field :amount, value: number_with_precision(ff.object.amount, precision: 2), class: 'form-control total', size: 10, maxlength: 8
            = validation_error_message(@error_presenter, 'fixed_fee.amount')


      - if @claim.case_type.fixed_fee_type.children.any?
        = ff.collection_select :sub_type_id, @claim.case_type.fixed_fee_type.children, :id, :description, { include_blank: true }, { class: 'form-control autocomplete' }
        = validation_error_message(@error_presenter, :sub_type)<commit_msg>move fixed fee sub type select list and add error anchor and field level error<commit_after>- if @claim.allows_fixed_fees?

  #fixed-fees.mod-fees
    %h2.bold-medium
      = t('.fixed_fees')
    .form-hint.xsmall
      = t('.prompt_text_html')

    = f.fields_for :fixed_fee do |ff|

      .expense-group.nested-fields.js-block{data:{"type":"fees", autovat: @claim.apply_vat? ? "true" : "false"}}
        .grid-row
          .column-two-thirds
            %label.form-label
              = t('.fee_type')
            = ff.anchored_attribute 'fee_type'
            = @claim.case_type.fixed_fee_type.description
            = ff.hidden_field :fee_type_id, value: @claim.case_type.fixed_fee_type.id
            = validation_error_message(@error_presenter, :fee_type)
        .grid-row
          - if @claim.case_type.fixed_fee_type.children.any?
            %label.form-label
              = t('.select_sub_type')
            = ff.anchored_attribute 'sub_type'
            = ff.collection_select :sub_type_id, @claim.case_type.fixed_fee_type.children, :id, :description, { include_blank: true }, { class: 'form-control autocomplete' }
            = validation_error_message(@error_presenter, 'fixed_fee.sub_type')

          .column-one-third.condensed.js-expense-location

        .grid-row
          .column-two-thirds
            - ff.object.dates_attended << DateAttended.new unless ff.object.dates_attended.any?
            = ff.fields_for :dates_attended do |date_attended|
              = render 'date_generic_fields', f: date_attended, field_id: 'fixed_fee.date_attended_1_date'

          .column-one-third.condensed.js-expense-amount.fee-total
            %label.form-label Total

            = ff.anchored_attribute 'amount'
            %span.currency-indicator>< &pound;
            = ff.text_field :amount, value: number_with_precision(ff.object.amount, precision: 2), class: 'form-control total', size: 10, maxlength: 8
            = validation_error_message(@error_presenter, 'fixed_fee.amount')
{'fraction_non_alphanumeric': 0.12193837239926257, 'fraction_numerical': 0.0031603897814063736, 'mean_word_length': 2.6137012369172217, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 5, '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': '3021773', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1206, 'n_words': 184}