Display carte champ value
This commit is contained in:
parent
4a097900d2
commit
b40abaa133
2 changed files with 10 additions and 0 deletions
3
app/views/shared/champs/carte/_show.html.haml
Normal file
3
app/views/shared/champs/carte/_show.html.haml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.carte{ data: { geo: geo_data(champ) } }
|
||||||
|
.geo-areas
|
||||||
|
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false }
|
|
@ -56,6 +56,13 @@
|
||||||
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
||||||
- if c.etablissement.present?
|
- if c.etablissement.present?
|
||||||
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: c.etablissement, profile: profile }
|
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: c.etablissement, profile: profile }
|
||||||
|
- when TypeDeChamp.type_champs.fetch(:carte)
|
||||||
|
%th.libelle
|
||||||
|
= "#{c.libelle} :"
|
||||||
|
%td.rich-text
|
||||||
|
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
||||||
|
- if c.value.present?
|
||||||
|
= render partial: "shared/champs/carte/show", locals: { champ: c }
|
||||||
- else
|
- else
|
||||||
%th.libelle
|
%th.libelle
|
||||||
= "#{c.libelle} :"
|
= "#{c.libelle} :"
|
||||||
|
|
Loading…
Add table
Reference in a new issue