Adds title before error list & remove useless link
This commit is contained in:
parent
e7080c1ad1
commit
fbb7bd7989
3 changed files with 22 additions and 9 deletions
|
@ -1,7 +1,13 @@
|
|||
---
|
||||
en:
|
||||
sumup_html:
|
||||
title:
|
||||
one: |
|
||||
Your file has 1 error. <a href="%{url}">Fix-it</a> to continue :
|
||||
Your file has 1 error
|
||||
other: |
|
||||
Your file has %{count} errors. <a href="%{url}">Fix-them</a> to continue :
|
||||
Your file has %{count} errors
|
||||
content:
|
||||
one: |
|
||||
Fix-it to continue:
|
||||
other: |
|
||||
Fix-them to continue:
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
---
|
||||
fr:
|
||||
sumup_html:
|
||||
title:
|
||||
one: |
|
||||
Votre dossier contient 1 champ en erreur. <a href="%{url}">Corrigez-la</a> pour poursuivre :
|
||||
Votre dossier contient 1 champ en erreur
|
||||
other: |
|
||||
Votre dossier contient %{count} champs en erreurs. <a href="%{url}">Corrigez-les</a> pour poursuivre :
|
||||
Votre dossier contient %{count} champs en erreur
|
||||
content:
|
||||
one: |
|
||||
Corrigez-la pour poursuivre :
|
||||
other: |
|
||||
Corrigez-les pour poursuivre :
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue