style(manager): message on invisible champ due to conditional

This commit is contained in:
Colin Darie 2022-11-14 21:57:24 +01:00
parent 8d1e99dc06
commit d4eed1c631
2 changed files with 16 additions and 9 deletions

View file

@ -41,9 +41,13 @@
} }
.pl-8 { .pl-8 {
padding-left: ($default-spacer * 8) !important padding-left: ($default-spacer * 8) !important;
} }
.cell-group-header { .cell-group-header {
font-weight: 600; font-weight: 600;
} }
.cell-disabled {
opacity: 0.6;
}

View file

@ -1,18 +1,21 @@
%tr %tr
%td.cell-data{ class: row.child? ? "pl-8" : nil } %td.cell-data{ class: [row.child? ? "pl-8" : nil, row.visible? ? nil : "cell-disabled"] }
= row.libelle = row.libelle
- if row.mandatory? - if row.mandatory?
%span.mandatory{ style: 'color: #A10005;' } * %span.mandatory{ style: 'color: #A10005;' } *
%td.cell-data %td.cell-data{ class: [row.visible? ? nil : "cell-disabled"] }
= I18n.t("activerecord.attributes.type_de_champ.type_champs.#{row.type_champ}") = I18n.t("activerecord.attributes.type_de_champ.type_champs.#{row.type_champ}")
%td.cell-data %td.cell-data{ class: [row.visible? ? nil : "cell-disabled"] }
- if row.visible?
- if row.blank? && row.mandatory? - if row.blank? && row.mandatory?
🔴
- else - else
✔️ 🟢
- if row.blank? - if !row.visible? && row.conditional?
masqué, conditionnel
- elsif row.blank?
vide vide
- else - else
rempli rempli