2015-09-24 10:17:59 +02:00
|
|
|
|
|
|
|
#infos_dossier
|
|
|
|
%div.row
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%h3.text-info
|
2015-12-24 15:10:20 +01:00
|
|
|
= @facade.dossier.nom_projet
|
2015-12-15 17:46:05 +01:00
|
|
|
%h4
|
2015-12-24 15:10:20 +01:00
|
|
|
= @facade.dossier.procedure.libelle
|
2015-08-10 11:05:06 +02:00
|
|
|
.description
|
|
|
|
- begin
|
2015-12-24 15:10:20 +01:00
|
|
|
- @facade.dossier.description.split(/(?:\n\r?|\r\n?')/).each do |line|
|
2015-08-10 11:05:06 +02:00
|
|
|
= line
|
|
|
|
%br
|
|
|
|
- rescue
|
|
|
|
=''
|
2015-12-24 15:10:20 +01:00
|
|
|
- if @facade.dossier.procedure.module_api_carto.use_api_carto
|
2015-11-19 16:47:56 +01:00
|
|
|
.col-lg-6.col-md-6
|
2015-12-08 11:32:29 +01:00
|
|
|
|
2015-12-24 15:10:20 +01:00
|
|
|
#map.mini{class: @facade.dossier.class_qp_active}
|
2015-12-08 11:32:29 +01:00
|
|
|
|
2015-12-24 15:10:20 +01:00
|
|
|
%input{id: 'json_latlngs', type:'hidden', value: "#{@facade.dossier.json_latlngs}"}
|
|
|
|
%input{id: 'quartier_prioritaires', type:'hidden', value: "#{@facade.dossier.quartier_prioritaires.to_json}"}
|
2015-11-19 16:47:56 +01:00
|
|
|
%script{type: 'text/javascript'}
|
2015-12-24 15:10:20 +01:00
|
|
|
= "var dossier_id =#{@facade.dossier.id}"
|
2015-11-19 16:47:56 +01:00
|
|
|
initCarto();
|
2015-08-10 11:05:06 +02:00
|
|
|
|
2015-11-04 11:14:07 +01:00
|
|
|
%br
|
2015-12-24 15:10:20 +01:00
|
|
|
-unless @facade.champs.nil?
|
2015-11-19 16:47:56 +01:00
|
|
|
.row
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
%table.table#liste_champs
|
2015-12-24 15:10:20 +01:00
|
|
|
-@facade.champs.each do |champ|
|
2015-11-19 16:47:56 +01:00
|
|
|
%tr
|
|
|
|
%th{ style: 'width:25%' }
|
|
|
|
=champ.libelle
|
|
|
|
%td
|
|
|
|
=champ.value
|
|
|
|
.col-lg-6.col-md-6
|
|
|
|
=render partial: '/dossiers/pieces_justificatives'
|
|
|
|
%br
|
2015-11-04 11:14:07 +01:00
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
%div.row{style: 'text-align:right'}
|
2015-09-24 16:51:14 +02:00
|
|
|
-unless gestionnaire_signed_in?
|
2015-12-24 15:10:20 +01:00
|
|
|
-if !@facade.dossier.validated? && !@facade.dossier.submitted? && !@facade.dossier.closed?
|
|
|
|
-if @facade.dossier.procedure.module_api_carto.use_api_carto
|
|
|
|
%a#maj_carte.btn.btn-primary{href: "/users/dossiers/#{@facade.dossier.id}/carte"}
|
2015-11-19 16:47:56 +01:00
|
|
|
= 'Editer ma carte'
|
2015-12-24 15:10:20 +01:00
|
|
|
%a#maj_infos.btn.btn-info{href: "/users/dossiers/#{@facade.dossier.id}/description"}
|
2015-09-24 16:51:14 +02:00
|
|
|
= 'Editer mon dossier'
|
|
|
|
|
|
|
|
-unless user_signed_in?
|
2015-12-24 15:10:20 +01:00
|
|
|
-if !@facade.dossier.validated? && !@facade.dossier.submitted? && !@facade.dossier.closed?
|
|
|
|
= form_tag(url_for({controller: 'backoffice/dossiers', action: :valid, dossier_id: @facade.dossier.id}), class: 'form-inline', method: 'POST') do
|
2015-09-24 16:51:14 +02:00
|
|
|
%button#action_button.btn.btn-success
|
|
|
|
= 'Valider le dossier'
|
2015-12-24 15:10:20 +01:00
|
|
|
-elsif @facade.dossier.submitted?
|
|
|
|
= form_tag(url_for({controller: 'backoffice/dossiers', action: :close, dossier_id: @facade.dossier.id}), class: 'form-inline', method: 'POST') do
|
2015-10-09 12:05:07 +02:00
|
|
|
%button#action_button.btn.btn-success
|
|
|
|
= 'Traiter le dossier'
|
2015-09-24 16:51:14 +02:00
|
|
|
|