demarches-normaliennes/app/views/users/carte/show.html.haml

31 lines
1.2 KiB
Text
Raw Normal View History

.row#carto-page
2016-12-23 16:58:06 +01:00
.col-lg-12.col-md-12.col-sm-12.col-xs-12
2016-12-07 17:55:34 +01:00
%h2
2017-04-06 16:33:53 +02:00
Localisation
2016-12-07 17:55:34 +01:00
%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
.content{ style: 'margin-bottom: 60px;' }
%button#new.btn.btn-md.btn-success{ type: 'button' }
2016-12-07 17:55:34 +01:00
%i.fa.fa-pencil
Ajouter une zone
2015-08-10 11:05:06 +02:00
%span#search-by-address{ style: 'margin-left: 20px;' }
%input.form-control{ type: :address, data: { autocomplete: 'address' }, placeholder: 'Rechercher une adresse' }
2016-12-07 17:55:34 +01:00
%br
%br
2017-04-06 19:10:25 +02:00
= render partial: 'users/carte/map', locals: { dossier: @dossier }
2017-04-06 19:10:25 +02:00
= form_tag(url_for({ controller: :carte, action: :save, dossier_id: @dossier.id }), class: 'form-inline', method: 'POST') do
2016-12-07 17:55:34 +01:00
%br
%input#json_latlngs{ type: 'hidden', value: "#{@dossier.json_latlngs}", name: 'json_latlngs' }
%input#quartier_prioritaires{ type: 'hidden', value: "#{@dossier.quartier_prioritaires.to_json}" }
%input#cadastres{ type: 'hidden', value: "#{@dossier.cadastres.to_json}" }
2015-08-10 11:05:06 +02:00
2017-12-04 16:17:15 +01:00
- if @dossier.brouillon?
= render partial: '/layouts/etape_suivante'
- else
= render partial: '/layouts/modifications_terminees'