feat(experts_procedures#create): link to typo errors
This commit is contained in:
parent
e6a3f210d4
commit
77bf93dfc2
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
= render Dsfr::AlertComponent.new(title: "nous pensons avoir identifié une faute de frappe : ", state: :warning, extra_class_names: 'fr-mb-3w') do |c|
|
||||
- c.with_body do
|
||||
%p= @title
|
||||
%ul
|
||||
%ul#maybe_typos_errors
|
||||
- @maybe_typos.each do |(actual_email, suggested_email)|
|
||||
%li
|
||||
= "Je confirme "
|
||||
|
|
|
@ -15,7 +15,7 @@ module Administrateurs
|
|||
.map { |email| [email, EmailChecker.check(email:)[:suggestions]&.first] }
|
||||
.partition { _1[1].present? }
|
||||
errors = if !@maybe_typos.empty?
|
||||
["Attention, nous pensons avoir identifié une faute de frappe dans les invitations : #{@maybe_typos.map(&:first).join(', ')}"]
|
||||
["Attention, nous pensons avoir identifié une faute de frappe dans les invitations : #{@maybe_typos.map(&:first).join(', ')}. Veuillez, #{view_context.link_to(" verifier l'orthographe", "#maybe_typos_errors")} des invitations."]
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue