style(demande): homogeneize "blank" champs and not attached files champs
This commit is contained in:
parent
da9f76a538
commit
1bdc6c02c6
6 changed files with 16 additions and 10 deletions
|
@ -37,6 +37,10 @@ class Champs::TitreIdentiteChamp < Champ
|
|||
mandatory? && !piece_justificative_file.attached?
|
||||
end
|
||||
|
||||
def blank?
|
||||
piece_justificative_file.blank?
|
||||
end
|
||||
|
||||
def for_export
|
||||
piece_justificative_file.attached? ? "présent" : "absent"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue