fix(champs): finish EditableChampComponent refactor
This commit is contained in:
parent
0a1a9e07c4
commit
d35ceb7214
58 changed files with 135 additions and 282 deletions
|
@ -51,6 +51,7 @@ class Champ < ApplicationRecord
|
|||
:simple_drop_down_list?,
|
||||
:linked_drop_down_list?,
|
||||
:non_fillable?,
|
||||
:fillable?,
|
||||
:cnaf?,
|
||||
:dgfip?,
|
||||
:pole_emploi?,
|
||||
|
|
|
@ -186,6 +186,10 @@ class TypeDeChamp < ApplicationRecord
|
|||
drop_down_other == "1" || drop_down_other == true
|
||||
end
|
||||
|
||||
def fillable?
|
||||
!non_fillable?
|
||||
end
|
||||
|
||||
def non_fillable?
|
||||
type_champ.in?([
|
||||
TypeDeChamp.type_champs.fetch(:header_section),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue