2017-10-16 17:37:19 +02:00
|
|
|
|
%table.table.vertical.dossier-champs
|
2017-07-11 16:50:29 +02:00
|
|
|
|
%tbody
|
2018-12-18 11:17:52 +01:00
|
|
|
|
- champs.reject(&:exclude_from_view?).each do |c|
|
2017-07-11 16:50:29 +02:00
|
|
|
|
%tr
|
2018-12-28 20:35:06 +01:00
|
|
|
|
- if c.type_champ == TypeDeChamp.type_champs.fetch(:header_section)
|
2017-12-05 16:07:05 +01:00
|
|
|
|
%th.header-section{ colspan: 3 }
|
2017-07-11 16:50:29 +02:00
|
|
|
|
= c.libelle
|
2017-11-20 16:23:43 +01:00
|
|
|
|
- else
|
2017-10-16 17:37:19 +02:00
|
|
|
|
%th.libelle
|
2017-07-11 16:50:29 +02:00
|
|
|
|
= "#{c.libelle} :"
|
2017-10-25 15:37:59 +02:00
|
|
|
|
%td.rich-text
|
2017-12-05 16:07:05 +01:00
|
|
|
|
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
2018-12-28 20:35:06 +01:00
|
|
|
|
- case c.type_champ
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:multiple_drop_down_list)
|
|
|
|
|
= render partial: "shared/champs/multiple_drop_down_list/show", locals: { champ: c }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:dossier_link)
|
|
|
|
|
= render partial: "shared/champs/dossier_link/show", locals: { champ: c }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:piece_justificative)
|
|
|
|
|
= render partial: "shared/champs/piece_justificative/show", locals: { champ: c }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:textarea)
|
|
|
|
|
= render partial: "shared/champs/text_area/show", locals: { champ: c }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:siret)
|
|
|
|
|
= render partial: "shared/champs/siret/show", locals: { champ: c, profile: profile }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:carte)
|
|
|
|
|
= render partial: "shared/champs/carte/show", locals: { champ: c }
|
|
|
|
|
- else
|
|
|
|
|
= sanitize(c.to_s)
|
2018-08-28 16:22:34 +02:00
|
|
|
|
- if c.type_champ != TypeDeChamp.type_champs.fetch(:header_section)
|
2017-12-05 16:07:05 +01:00
|
|
|
|
%td.updated-at
|
|
|
|
|
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
|
|
|
|
modifié le
|
2018-10-25 22:25:43 +02:00
|
|
|
|
= c.updated_at.strftime("%d/%m/%Y à %H:%M")
|