Merge pull request #8526 from demarches-simplifiees/fix/new-tab

fix: add title to new tab link
This commit is contained in:
Colin Darie 2023-01-30 15:26:00 +01:00 committed by GitHub
commit 911e84263f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -43,7 +43,7 @@
= t("views.prefill_descriptions.edit.possible_values.#{type_de_champ.type_champ}_html")
%br
- if type_de_champ.too_many_possible_values?
= link_to "Voir toutes les valeurs possibles", prefill_type_de_champ_path(prefill_description.path, type_de_champ), target: "_blank"
= link_to t("views.prefill_descriptions.edit.possible_values.link.text"), prefill_type_de_champ_path(prefill_description.path, type_de_champ), title: new_tab_suffix(t("views.prefill_descriptions.edit.possible_values.link.title")), **external_link_attributes
- else
= type_de_champ.possible_values.to_sentence
%tr{ class: prefillable ? "" : "fr-text-mention--grey" }

View file

@ -112,6 +112,9 @@ en:
champ_remove: Remove
champ_unavailable: Unavailable
possible_values:
link:
title: All possible values
text: See all possible values
title: Values
text_html: A short text
textarea_html: A long text

View file

@ -103,6 +103,9 @@ fr:
champ_remove: Retirer
champ_unavailable: Indisponible
possible_values:
link:
title: Toutes les valeurs possibles
text: Voir toutes les valeurs possibles
title: Valeurs
text_html: Un texte court
textarea_html: Un texte long