From 7ad368b9adef1bb2573cdc31efb54534a6c9574d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Charignon?= Date: Mon, 15 Mar 2021 11:28:30 +0100 Subject: [PATCH] Ajout les traductions pour le lien "nouvelle structure" --- app/views/active_admin/devise/registrations/new.html.erb | 5 +++-- config/locales/activeadmin.yml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/active_admin/devise/registrations/new.html.erb b/app/views/active_admin/devise/registrations/new.html.erb index 913ca33be..5d9b34271 100644 --- a/app/views/active_admin/devise/registrations/new.html.erb +++ b/app/views/active_admin/devise/registrations/new.html.erb @@ -14,8 +14,9 @@ f.input :password_confirmation if resource.structure.blank? - f.input :structure, hint: "Si vous ne trouvez pas votre structure, #{ link_to 'enregistrez-la ici', nouvelle_structure_path }".html_safe, - collection: Hash[Structure.order(:code_postal).map{|s| ["#{s.code_postal} - #{s.nom}",s.id]}] + f.input :structure, + hint: t('.nouvelle_structure_html', lien: nouvelle_structure_path), + collection: Hash[Structure.order(:code_postal).map{|s| ["#{s.code_postal} - #{s.nom}",s.id]}] else f.input :structure_id, as: :hidden end diff --git a/config/locales/activeadmin.yml b/config/locales/activeadmin.yml index 315177cc6..3c9775baf 100644 --- a/config/locales/activeadmin.yml +++ b/config/locales/activeadmin.yml @@ -11,3 +11,4 @@ fr: registrations: new: title: Rejoindre %{structure} + nouvelle_structure_html: Si vous ne trouvez pas votre structure, enregistrez-la ici