diff --git a/app/views/prefill_descriptions/_types_de_champs.html.haml b/app/views/prefill_descriptions/_types_de_champs.html.haml index a60085deb..19b81e35d 100644 --- a/app/views/prefill_descriptions/_types_de_champs.html.haml +++ b/app/views/prefill_descriptions/_types_de_champs.html.haml @@ -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" } diff --git a/config/locales/en.yml b/config/locales/en.yml index 4f73b3485..adb7d79bc 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 48709b807..6937b4ff0 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -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