Extract the siret champ view in a partial
This commit is contained in:
parent
c1ebae3ee8
commit
dbbe2866d5
2 changed files with 3 additions and 2 deletions
2
app/views/shared/champs/siret/_show.html.haml
Normal file
2
app/views/shared/champs/siret/_show.html.haml
Normal file
|
@ -0,0 +1,2 @@
|
|||
- if champ.etablissement.present?
|
||||
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: champ.etablissement, profile: profile }
|
|
@ -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} :"
|
||||
|
|
Loading…
Reference in a new issue