2022-06-27 11:56:35 +02:00
|
|
|
|
- champs.reject(&:exclude_from_view?).filter(&:visible?).each do |c|
|
2019-01-30 17:20:02 +01:00
|
|
|
|
- if c.type_champ == TypeDeChamp.type_champs.fetch(:repetition)
|
|
|
|
|
%tr
|
2021-12-21 12:28:17 +01:00
|
|
|
|
%td.libelle.repetition{ colspan: 3 }
|
2019-01-30 17:20:02 +01:00
|
|
|
|
= "#{c.libelle} :"
|
|
|
|
|
- c.rows.each do |champs|
|
|
|
|
|
= render partial: "shared/dossiers/champ_row", locals: { champs: champs, demande_seen_at: demande_seen_at, profile: profile, repetition: true }
|
|
|
|
|
%tr
|
2021-12-21 12:28:17 +01:00
|
|
|
|
%td.libelle{ colspan: 4 }
|
2019-01-30 17:20:02 +01:00
|
|
|
|
- else
|
|
|
|
|
%tr
|
|
|
|
|
- if c.type_champ == TypeDeChamp.type_champs.fetch(:header_section)
|
|
|
|
|
%th.header-section{ colspan: 3 }
|
|
|
|
|
= c.libelle
|
|
|
|
|
- else
|
2021-12-21 12:28:17 +01:00
|
|
|
|
%td.libelle{ class: repetition ? 'padded' : '' }
|
2019-01-30 17:20:02 +01:00
|
|
|
|
= "#{c.libelle} :"
|
|
|
|
|
%td.rich-text
|
2019-11-19 14:52:07 +01:00
|
|
|
|
%div{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
2019-01-30 17:20:02 +01:00
|
|
|
|
- case c.type_champ
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:carte)
|
|
|
|
|
= render partial: "shared/champs/carte/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(:multiple_drop_down_list)
|
|
|
|
|
= render partial: "shared/champs/multiple_drop_down_list/show", locals: { champ: c }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:piece_justificative)
|
|
|
|
|
= render partial: "shared/champs/piece_justificative/show", locals: { champ: c }
|
2020-09-17 17:09:16 +02:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:titre_identite)
|
|
|
|
|
= render partial: "shared/champs/piece_justificative/show", locals: { champ: c }
|
2019-01-30 17:20:02 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:siret)
|
|
|
|
|
= render partial: "shared/champs/siret/show", locals: { champ: c, profile: profile }
|
2020-09-22 16:04:57 +02:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:iban)
|
|
|
|
|
= render partial: "shared/champs/iban/show", locals: { champ: c }
|
2019-01-30 17:20:02 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:textarea)
|
|
|
|
|
= render partial: "shared/champs/textarea/show", locals: { champ: c }
|
2021-01-14 17:30:55 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:annuaire_education)
|
|
|
|
|
= render partial: "shared/champs/annuaire_education/show", locals: { champ: c }
|
2021-09-21 14:49:54 +02:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:cnaf)
|
|
|
|
|
= render partial: "shared/champs/cnaf/show", locals: { champ: c, profile: profile }
|
2021-11-24 17:30:35 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:dgfip)
|
|
|
|
|
= render partial: "shared/champs/dgfip/show", locals: { champ: c, profile: profile }
|
2021-12-01 10:21:30 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:pole_emploi)
|
|
|
|
|
= render partial: "shared/champs/pole_emploi/show", locals: { champ: c, profile: profile }
|
2021-12-15 15:25:02 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:mesri)
|
|
|
|
|
= render partial: "shared/champs/mesri/show", locals: { champ: c, profile: profile }
|
2021-03-17 11:51:45 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:address)
|
|
|
|
|
= render partial: "shared/champs/address/show", locals: { champ: c }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:communes)
|
|
|
|
|
= render partial: "shared/champs/communes/show", locals: { champ: c }
|
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:regions)
|
|
|
|
|
= render partial: "shared/champs/regions/show", locals: { champ: c }
|
2022-09-22 17:14:05 +02:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:rna)
|
|
|
|
|
= render partial: "shared/champs/rna/show", locals: { champ: c, profile: profile }
|
2019-04-10 15:49:13 +02:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:date)
|
2019-05-22 17:54:17 +02:00
|
|
|
|
= c.to_s
|
2019-04-10 15:49:13 +02:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:datetime)
|
2019-05-22 17:54:17 +02:00
|
|
|
|
= c.to_s
|
2020-02-06 16:54:38 +01:00
|
|
|
|
- when TypeDeChamp.type_champs.fetch(:number)
|
2020-02-13 15:57:29 +01:00
|
|
|
|
= number_with_html_delimiter(c.to_s)
|
2019-01-30 17:20:02 +01:00
|
|
|
|
- else
|
2022-02-02 18:03:24 +01:00
|
|
|
|
= format_text_value(c.to_s) unless c.blank?
|
2019-01-30 17:20:02 +01:00
|
|
|
|
|
|
|
|
|
- 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
|
2019-06-05 17:07:38 +02:00
|
|
|
|
= try_format_datetime(c.updated_at)
|