diff --git a/app/components/attachment/edit_component/edit_component.en.yml b/app/components/attachment/edit_component/edit_component.en.yml index b5ae8544f..09d8cd176 100644 --- a/app/components/attachment/edit_component/edit_component.en.yml +++ b/app/components/attachment/edit_component/edit_component.en.yml @@ -5,6 +5,7 @@ en: retry: Retry delete: Delete delete_file: Delete file %{filename} + multiple_files: Multiple files possible. replace: Replace replace_file: Replace file %{filename} open_file: Open file %{filename} diff --git a/app/components/attachment/edit_component/edit_component.fr.yml b/app/components/attachment/edit_component/edit_component.fr.yml index d4e5b6811..67e2dd519 100644 --- a/app/components/attachment/edit_component/edit_component.fr.yml +++ b/app/components/attachment/edit_component/edit_component.fr.yml @@ -5,6 +5,7 @@ fr: retry: Réessayer delete: Supprimer delete_file: Supprimer le fichier %{filename} + multiple_files: Plusieurs fichiers possibles. replace: Remplacer replace_file: Remplacer le fichier %{filename} open_file: Ouvrir le fichier %{filename} diff --git a/app/components/attachment/edit_component/edit_component.html.haml b/app/components/attachment/edit_component/edit_component.html.haml index 57b60297d..45d8ceafc 100644 --- a/app/components/attachment/edit_component/edit_component.html.haml +++ b/app/components/attachment/edit_component/edit_component.html.haml @@ -43,6 +43,8 @@ = t('.max_file_size', max_file_size: number_to_human_size(max_file_size)) - if allowed_formats.present? = t('.allowed_formats', formats: allowed_formats.join(', ')) + - if as_multiple? + = t('.multiple_files') - if !persisted? || champ.present? && champ.titre_identite? = file_field(champ, field_name, **file_field_options)