Remove unused carto from instructeur interface
This commit is contained in:
parent
9ff65efea8
commit
c6ef30f3e1
9 changed files with 3 additions and 95 deletions
|
@ -17,22 +17,6 @@
|
|||
- if champs.any?
|
||||
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil, profile: 'instructeur' }
|
||||
|
||||
- if @dossier.use_legacy_carto?
|
||||
%h3 Cartographie
|
||||
- if @dossier.quartier_prioritaires.any?
|
||||
%h4 Quartiers prioritaires
|
||||
%table
|
||||
- @dossier.quartier_prioritaires.each do |q|
|
||||
%tr
|
||||
%td= q.nom
|
||||
|
||||
- if @dossier.cadastres.any?
|
||||
%h4 Parcelles cadastrales
|
||||
%table
|
||||
- @dossier.cadastres.each do |p|
|
||||
%tr
|
||||
%td= "Parcelle n° #{p.numero} - Feuille #{p.code_arr} #{p.section} #{p.feuille}"
|
||||
|
||||
- if @dossier.types_de_piece_justificative.any?
|
||||
%h3 Pièces jointes
|
||||
|
||||
|
|
|
@ -24,12 +24,4 @@
|
|||
|
||||
.actions
|
||||
= link_to 'Utiliser un autre numéro SIRET', siret_dossier_path(@dossier), class: 'button'
|
||||
|
||||
- if @dossier.use_legacy_carto?
|
||||
/ Until the old layout is gone, we need to disable turbolinks
|
||||
/ to avoid the map loading twice (once for the turbolinks preview,
|
||||
/ once when turbolinks notices the layout are differents and reloads
|
||||
/ the page.)
|
||||
= link_to 'Continuer avec ces informations', users_dossier_carte_path(@dossier), class: 'button primary', data: { turbolinks: false }
|
||||
- else
|
||||
= link_to 'Continuer avec ces informations', brouillon_dossier_path(@dossier), class: 'button primary'
|
||||
= link_to 'Continuer avec ces informations', brouillon_dossier_path(@dossier), class: 'button primary'
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
:javascript
|
||||
DATA.push({
|
||||
carto: {
|
||||
position: #{raw(dossier.geo_position.to_json)},
|
||||
selection: #{raw(ensure_safe_json(dossier.json_latlngs))},
|
||||
cadastres: #{raw(dossier.cadastres.to_json)},
|
||||
quartiersPrioritaires: #{raw(dossier.quartier_prioritaires.to_json)}
|
||||
}
|
||||
});
|
|
@ -15,11 +15,6 @@
|
|||
.card
|
||||
= render partial: "shared/dossiers/champs", locals: { champs: champs, demande_seen_at: demande_seen_at, profile: profile }
|
||||
|
||||
- if dossier.use_legacy_carto?
|
||||
.tab-title Cartographie
|
||||
.card
|
||||
= render partial: "shared/dossiers/map", locals: { dossier: dossier }
|
||||
|
||||
- if dossier.types_de_piece_justificative.any?
|
||||
.tab-title Pièces jointes
|
||||
.card
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
- if dossier.json_latlngs.nil?
|
||||
%h2.empty-text Non renseigné
|
||||
- else
|
||||
#map
|
||||
|
||||
- if dossier.quartier_prioritaires.any?
|
||||
.card-title Quartiers prioritaires
|
||||
%ul
|
||||
- dossier.quartier_prioritaires.each do |q|
|
||||
%li= q.nom
|
||||
|
||||
- if dossier.cadastres.any?
|
||||
.card-title Parcelles cadastrales
|
||||
%ul
|
||||
- dossier.cadastres.each do |p|
|
||||
%li
|
||||
= "Parcelle n° #{p.numero} - Feuille #{p.code_arr} #{p.section} #{p.feuille}"
|
||||
|
||||
= render partial: 'shared/champs/carte/init', locals: { dossier: dossier }
|
Loading…
Add table
Add a link
Reference in a new issue