feat(cojo): add cojo type de champ
This commit is contained in:
parent
c74351459e
commit
d5820277c0
31 changed files with 361 additions and 12 deletions
9
app/components/editable_champ/cojo_component.rb
Normal file
9
app/components/editable_champ/cojo_component.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue