Extract the siret champ view in a partial

This commit is contained in:
gregoirenovel 2018-12-28 16:38:21 +01:00
parent c1ebae3ee8
commit dbbe2866d5
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1,2 @@
- if champ.etablissement.present?
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: champ.etablissement, profile: profile }

View file

@ -35,8 +35,7 @@
= "#{c.libelle} :"
%td.rich-text
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
- if c.etablissement.present?
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: c.etablissement, profile: profile }
= render partial: "shared/champs/siret/show", locals: { champ: c, profile: profile }
- when TypeDeChamp.type_champs.fetch(:carte)
%th.libelle
= "#{c.libelle} :"