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

35 lines
1 KiB
Text
Raw Normal View History

2015-08-10 11:05:06 +02:00
%h2
='Localisation de votre demande'
%br
.content{style:'margin-bottom:60px'}
%button#new.btn.btn-sm.btn-success{type:'button'} Nouveau
\-
%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
%br
%br
2015-11-25 10:26:55 +01:00
.row
- if @dossier.procedure.module_api_carto.quartiers_prioritaires
#map.qp
#qp_list
%h3 Quartiers prioritaites
%ul
-else
#map
= 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}"}
2015-08-10 11:05:06 +02:00
-if @dossier.draft?
=render partial: '/layouts/etape_suivante'
-else
=render partial: '/layouts/modifications_terminees'
2015-08-10 11:05:06 +02:00
%script{type: 'text/javascript'}
="var dossier_id =#{@dossier.id}"
initCarto();