update structure and styles card dossier-champs

This commit is contained in:
Julie Salha 2023-04-13 17:12:49 +02:00 committed by Martin
parent 5022018cff
commit e399aaf55d
2 changed files with 16 additions and 10 deletions

View file

@ -11,10 +11,13 @@
width: 325px;
}
td.libelle, td.updated-at {
width: 50%;
}
td.updated-at {
font-size: 13px;
color: $dark-grey;
text-align: right;
width: 190px;
text-align: left;
}
}

View file

@ -13,9 +13,16 @@
%th.header-section{ colspan: 3, class: c.dossier.auto_numbering_section_headers_for?(c) ? "header-section-counter" : nil }= c.libelle
- else
%td.libelle{ class: repetition ? 'padded' : '' }
= "#{c.libelle} :"
%td.rich-text{ class: c.type_champ }
%div{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
= "#{c.libelle} :"
- if c.type_champ != TypeDeChamp.type_champs.fetch(:header_section)
%td.updated-at
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
modifié le
= try_format_datetime(c.updated_at)
%tr
%td.rich-text{ class: c.type_champ }
%div{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
- case c.type_champ
- when TypeDeChamp.type_champs.fetch(:carte)
= render partial: "shared/champs/carte/show", locals: { champ: c }
@ -62,8 +69,4 @@
- else
= format_text_value(c.to_s) unless c.blank?
- if c.type_champ != TypeDeChamp.type_champs.fetch(:header_section)
%td.updated-at
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
modifié le
= try_format_datetime(c.updated_at)