demarches-normaliennes/app/components/editable_champ/cojo_component.rb
2024-08-22 09:26:48 +02:00

11 lines
287 B
Ruby

# frozen_string_literal: true
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