chore(manager): improve filled piece justificative champ detection

This commit is contained in:
Colin Darie 2022-11-14 22:12:40 +01:00
parent d4eed1c631
commit d0193c776f

View file

@ -8,14 +8,14 @@
%td.cell-data{ class: [row.visible? ? nil : "cell-disabled"] } %td.cell-data{ class: [row.visible? ? nil : "cell-disabled"] }
- if row.visible? - if row.visible?
- if row.blank? && row.mandatory? - if row.mandatory_blank?
🔴 🔴
- else - else
🟢 🟢
- if !row.visible? && row.conditional? - if !row.visible? && row.conditional?
masqué, conditionnel masqué, conditionnel
- elsif row.blank? - elsif row.blank? && !row.piece_justificative_file.attached?
vide vide
- else - else
rempli rempli