feat(cojo): add cojo type de champ

This commit is contained in:
Paul Chavard 2023-05-30 14:42:36 +02:00
parent c74351459e
commit d5820277c0
31 changed files with 361 additions and 12 deletions

View file

@ -0,0 +1,9 @@
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