demarches-normaliennes/app/components/editable_champ/annuaire_education_component.rb

13 lines
352 B
Ruby
Raw Normal View History

class EditableChamp::AnnuaireEducationComponent < EditableChamp::ComboSearchComponent
def dsfr_input_classname
'fr-input'
end
def react_input_opts
opts = input_opts(id: @champ.input_id, required: @champ.required?, aria: { describedby: @champ.describedby_id })
opts[:className] = "#{opts.delete(:class)} fr-mt-1w"
opts
end
2022-08-12 10:45:04 +02:00
end