2016-12-07 17:55:34 +01:00
|
|
|
.row#carto_page
|
|
|
|
.col-lg-12.col-md-12
|
|
|
|
%h2
|
|
|
|
='Localisation'
|
|
|
|
%h4.text-primary
|
|
|
|
Positionnez-vous et dessinez sur la carte la zone d'action de votre demande.
|
|
|
|
%br
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
.content{style:'margin-bottom:60px'}
|
|
|
|
%button#new.btn.btn-md.btn-success{type:'button'}
|
|
|
|
%i.fa.fa-pencil
|
|
|
|
Ajouter une zone
|
|
|
|
-#\-
|
|
|
|
-#%button#edit.btn.btn-sm.btn-info{type:'button'} Editer
|
|
|
|
-#\-
|
|
|
|
-#%button#delete.btn.btn-sm.btn-danger{type:'button'} Supprimer
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
%span#search_by_address{style: 'margin-left: 20px'}
|
|
|
|
%input.form-control{type: :address, placeholder: 'Rechercher une adresse'}
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
#carte_page.row
|
|
|
|
#map{class: @dossier.procedure.module_api_carto.classes }
|
2016-01-15 11:53:00 +01:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
- if @dossier.procedure.module_api_carto.quartiers_prioritaires
|
|
|
|
#qp.list
|
|
|
|
%h3.text-info Quartiers prioritaites
|
|
|
|
%ul
|
2016-01-15 11:53:00 +01:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
- if @dossier.procedure.module_api_carto.cadastre
|
|
|
|
#cadastre.list
|
|
|
|
%h3.text-warning Cadastres
|
|
|
|
%ul
|
2016-01-15 11:53:00 +01:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
= form_tag(url_for({controller: :carte, action: :save, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do
|
|
|
|
%br
|
|
|
|
%input{type: 'hidden', value: "#{@dossier.json_latlngs}", name: 'json_latlngs', id: 'json_latlngs'}
|
|
|
|
%input{id: 'quartier_prioritaires', type:'hidden', value: "#{@dossier.quartier_prioritaires.to_json}"}
|
|
|
|
%input{id: 'cadastres', type:'hidden', value: "#{@dossier.cadastres.to_json}"}
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
-if @dossier.draft?
|
|
|
|
=render partial: '/layouts/etape_suivante'
|
|
|
|
-else
|
|
|
|
=render partial: '/layouts/modifications_terminees'
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
%script{type: 'text/javascript'}
|
|
|
|
="var dossier_id =#{@dossier.id}"
|
|
|
|
initCarto();
|