fix(trad): Add traduction to supporting document
This commit is contained in:
parent
340595cc86
commit
f72c55631c
4 changed files with 9 additions and 3 deletions
|
@ -1 +1 @@
|
|||
= render Dsfr::DownloadComponent.new(attachment: champ.type_de_champ.piece_justificative_template, url: champs_piece_justificative_template_path(champ.dossier, champ.stable_id, row_id: champ.row_id), name: "Modèle à télécharger", ephemeral_link: administrateur_signed_in? )
|
||||
= render Dsfr::DownloadComponent.new(attachment: champ.type_de_champ.piece_justificative_template, url: champs_piece_justificative_template_path(champ.dossier, champ.stable_id, row_id: champ.row_id), name: t('views.shared.piece_justificative.name'), ephemeral_link: administrateur_signed_in? )
|
||||
|
|
|
@ -23,3 +23,6 @@ en:
|
|||
signin: 'Sign in'
|
||||
messages:
|
||||
remove_file: 'Remove file'
|
||||
piece_justificative:
|
||||
name: "Download template"
|
||||
title: "Download template %{filename}"
|
||||
|
|
|
@ -24,3 +24,6 @@ fr:
|
|||
messages:
|
||||
remove_file: 'Supprimer le fichier'
|
||||
remove_all: "Supprimer tous les fichiers"
|
||||
piece_justificative:
|
||||
name: "Télécharger le modèle"
|
||||
title: "Télécharger le modèle %{filename}"
|
||||
|
|
|
@ -22,14 +22,14 @@ describe EditableChamp::PieceJustificativeComponent, type: :component do
|
|||
end
|
||||
|
||||
it 'renders a link to template' do
|
||||
expect(subject).to have_link('Modèle à télécharger')
|
||||
expect(subject).to have_link('Télécharger le modèle')
|
||||
expect(subject).not_to have_text("éphémère")
|
||||
end
|
||||
|
||||
context 'as an administrator' do
|
||||
let(:profil) { :administrateur }
|
||||
it 'warn about ephemeral template url' do
|
||||
expect(subject).to have_link('Modèle à télécharger')
|
||||
expect(subject).to have_link('Télécharger le modèle')
|
||||
expect(subject).to have_text("éphémère")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue