amelioration(design): ETQ usager la cohabitation du design d'un form mi-DSFR, mi-DS n'est pas trop moche
amelioration(design): ETQ usager la cohabitation du design d'un form mi-DSFR, mi-DS n'est pas trop moche
This commit is contained in:
parent
e859665ea4
commit
c86c1efcb7
8 changed files with 19 additions and 25 deletions
|
@ -49,7 +49,6 @@ class Dsfr::InputComponent < ApplicationComponent
|
|||
object.class.human_attribute_name(@attribute)
|
||||
end
|
||||
|
||||
|
||||
# kind of input helpers
|
||||
def password?
|
||||
@input_type == :password_field
|
||||
|
@ -64,6 +63,4 @@ class Dsfr::InputComponent < ApplicationComponent
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
|
||||
end
|
||||
|
|
|
@ -68,7 +68,7 @@ module Dsfr
|
|||
end
|
||||
|
||||
def describedby_id
|
||||
dom_id(@champ, :error_messages)
|
||||
dom_id(@champ, :error_full_messages)
|
||||
end
|
||||
|
||||
def errors_on_another_attribute?
|
||||
|
@ -80,7 +80,7 @@ module Dsfr
|
|||
end
|
||||
|
||||
# errors helpers
|
||||
def error_messages
|
||||
def error_full_messages
|
||||
errors.full_messages_for(attribute_or_rich_body)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue