- if ep && ep.size > 0
  .error-summary{role: "group", 'aria-labelledby': "error-summary-heading", tabindex:'-1'}
    %h1.heading-medium.error-summary-heading{id: 'error-summary-heading'}
      = "#{t('.prohibited_save')} #{pluralize(ep.size, t('.error'))}"

    %span.form-hint
      = t('shared.errors.form_error_hint')

    %ul.error-summary-list
      - ep.header_errors.sort_by { |error| error.attribute }.each do |error_detail|
        %li
          = error_detail.long_message_link

- if ep && ep.size > 0
  .error-summary{role: "group", 'aria-labelledby': "error-summary-heading", tabindex:'-1'}
    %h1.heading-medium.error-summary-heading{id: 'error-summary-heading'}
      = "#{t('.prohibited_save')} #{pluralize(ep.size, t('.error'))}"

    %span.form-hint
      = t('shared.errors.form_error_hint')

    %ul.error-summary-list
      - ep.header_errors.each do |error_detail|
        %li
          = error_detail.long_message_link

Sort orders according to custom sequence in error_messages.yml
Sort orders according to custom sequence in error_messages.yml

The header errors method returns a collection to
ErrorDetail object which are already sort. No further
ordering should be needed, r if so then it should be done
via the `_seq` values in `error_messages.en.yml`
