#infos_dossier %div.row .col-lg-6.col-md-6 %h3.text-info = @dossier.nom_projet .description - begin - @dossier.description.split(/(?:\n\r?|\r\n?')/).each do |line| = line %br - rescue ='' - if @dossier.procedure.use_api_carto .col-lg-6.col-md-6 #map.mini %input{id: 'json_latlngs', type:'hidden', value: "#{@dossier.json_latlngs}"} %input{id: 'quartier_prioritaires', type:'hidden', value: "#{@dossier.quartier_prioritaires.to_json}"} %script{type: 'text/javascript'} = "var dossier_id =#{@dossier.id}" initCarto(); %br -unless @champs.nil? .row .col-lg-6.col-md-6 %table.table#liste_champs -@champs.each do |champ| %tr %th{ style: 'width:25%' } =champ.libelle %td =champ.value .col-lg-6.col-md-6 =render partial: '/dossiers/pieces_justificatives' %br %div.row{style: 'text-align:right'} -unless gestionnaire_signed_in? -if !@dossier.validated? && !@dossier.submitted? && !@dossier.closed? -if @dossier.procedure.use_api_carto %a#maj_carte.btn.btn-primary{href: "/users/dossiers/#{@dossier.id}/carte"} = 'Editer ma carte' %a#maj_infos.btn.btn-info{href: "/users/dossiers/#{@dossier.id}/description"} = 'Editer mon dossier' -unless user_signed_in? -if !@dossier.validated? && !@dossier.submitted? && !@dossier.closed? = form_tag(url_for({controller: 'backoffice/dossiers', action: :valid, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do %button#action_button.btn.btn-success = 'Valider le dossier' -elsif @dossier.submitted? = form_tag(url_for({controller: 'backoffice/dossiers', action: :close, dossier_id: @dossier.id}), class: 'form-inline', method: 'POST') do %button#action_button.btn.btn-success = 'Traiter le dossier'