Skip to content

Commit

Permalink
Ajout les traductions pour le lien "nouvelle structure"
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon committed Mar 15, 2021
1 parent 0fcb4e6 commit 7ad368b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/active_admin/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions config/locales/activeadmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ fr:
registrations:
new:
title: Rejoindre %{structure}
nouvelle_structure_html: Si vous ne trouvez pas votre structure, <a href="%{lien}">enregistrez-la ici</a>

0 comments on commit 7ad368b

Please sign in to comment.