Adds title before error list & remove useless link

This commit is contained in:
Corinne Durrmeyer 2024-10-03 14:50:37 +02:00
parent e7080c1ad1
commit fbb7bd7989
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
3 changed files with 22 additions and 9 deletions

View file

@ -1,7 +1,13 @@
---
en:
sumup_html:
one: |
Your file has 1 error. <a href="%{url}">Fix-it</a> to continue :
other: |
Your file has %{count} errors. <a href="%{url}">Fix-them</a> to continue :
title:
one: |
Your file has 1 error
other: |
Your file has %{count} errors
content:
one: |
Fix-it to continue:
other: |
Fix-them to continue:

View file

@ -1,7 +1,13 @@
---
fr:
sumup_html:
one: |
Votre dossier contient 1 champ en erreur. <a href="%{url}">Corrigez-la</a> pour poursuivre :
other: |
Votre dossier contient %{count} champs en erreurs. <a href="%{url}">Corrigez-les</a> pour poursuivre :
title:
one: |
Votre dossier contient 1 champ en erreur
other: |
Votre dossier contient %{count} champs en erreur
content:
one: |
Corrigez-la pour poursuivre :
other: |
Corrigez-les pour poursuivre :

View file

@ -1,4 +1,5 @@
.fr-alert.fr-alert--error.fr-mb-3w{ role: "alertdialog" }
- if dedup_and_partitioned_errors.size > 0
%p#sumup-errors= t('.sumup_html', count: dedup_and_partitioned_errors.size, url: dedup_and_partitioned_errors.first.anchor)
%h3#sumup-errors.fr-alert__title= t('.sumup_html.title', count: dedup_and_partitioned_errors.size)
%p= t('.sumup_html.content', count: dedup_and_partitioned_errors.size)
= render ExpandableErrorList.new(errors: dedup_and_partitioned_errors)