demarches-normaliennes/app/components/editable_champ/cojo_component.rb
2023-07-10 14:57:34 +02:00

9 lines
256 B
Ruby

class EditableChamp::COJOComponent < EditableChamp::EditableChampBaseComponent
def input_group_class
if @champ.accreditation_success?
'fr-input-group--valid'
elsif @champ.accreditation_error?
'fr-input-group--error'
end
end
end