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; width: 325px;
} }
td.libelle, td.updated-at {
width: 50%;
}
td.updated-at { td.updated-at {
font-size: 13px; font-size: 13px;
color: $dark-grey; color: $dark-grey;
text-align: right; text-align: left;
width: 190px;
} }
} }

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 %th.header-section{ colspan: 3, class: c.dossier.auto_numbering_section_headers_for?(c) ? "header-section-counter" : nil }= c.libelle
- else - else
%td.libelle{ class: repetition ? 'padded' : '' } %td.libelle{ class: repetition ? 'padded' : '' }
= "#{c.libelle} :" = "#{c.libelle} :"
%td.rich-text{ class: c.type_champ } - if c.type_champ != TypeDeChamp.type_champs.fetch(:header_section)
%div{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) } %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 - case c.type_champ
- when TypeDeChamp.type_champs.fetch(:carte) - when TypeDeChamp.type_champs.fetch(:carte)
= render partial: "shared/champs/carte/show", locals: { champ: c } = render partial: "shared/champs/carte/show", locals: { champ: c }
@ -62,8 +69,4 @@
- else - else
= format_text_value(c.to_s) unless c.blank? = 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)