Remove the .card div from the map partial

This commit is contained in:
gregoirenovel 2017-10-16 17:01:56 +02:00
parent d42e438546
commit 9e266ca0f4
3 changed files with 16 additions and 15 deletions

View file

@ -18,7 +18,8 @@
- if @dossier.procedure.use_api_carto
.backoffice-title Cartographie
= render partial: 'new_gestionnaire/dossiers/map', locals: { dossier: @dossier }
.card
= render partial: 'new_gestionnaire/dossiers/map', locals: { dossier: @dossier }
- if @dossier.procedure.cerfa_flag? || @dossier.types_de_piece_justificative.any?
.backoffice-title Pièces jointes

View file

@ -1,18 +1,17 @@
.card
#map
#map
- if dossier.quartier_prioritaires.any?
.card-title Quartiers prioritaires
%ul
- dossier.quartier_prioritaires.each do |q|
%li= q.nom
- 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}"
- 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}"
:javascript
var getPositionUrl = "#{position_dossier_path(dossier.procedure, dossier)}";

View file

@ -17,7 +17,8 @@
- if @dossier.procedure.use_api_carto
.backoffice-title Cartographie
= render partial: "map", locals: { dossier: @dossier }
.card
= render partial: "map", locals: { dossier: @dossier }
- if @dossier.procedure.cerfa_flag? || @dossier.types_de_piece_justificative.any?
.backoffice-title Pièces jointes