2015-09-24 10:17:59 +02:00
#infos_dossier
%div.row
.col-lg-6.col-md-6
2016-07-19 16:10:50 +02:00
%h3
2015-12-24 15:10:20 +01:00
= @facade.dossier.procedure.libelle
2016-01-06 14:54:00 +01:00
2016-10-12 14:21:54 +02:00
- if @facade.procedure.for_individual?
%br
.individual.text-info
2016-11-03 16:46:26 +01:00
%h4
=t('dynamics.dossiers.depositaite')
2016-10-12 14:21:54 +02:00
%table.table{style:'width: 60%'}
%tr
%th.col-md-3.col-lg-3
Civilité
%td.col-md-5.col-lg-5
= @facade.individual.gender
%tr
%th.col-md-3.col-lg-3
Nom
%td.col-md-5.col-lg-5
= @facade.individual.nom
%tr
%th.col-md-3.col-lg-3
Prénom
%td.col-md-5.col-lg-5
= @facade.individual.prenom
2016-11-03 16:46:26 +01:00
- unless Features.opensimplif
%tr
%th.col-md-3.col-lg-3
Date de naissance
%td.col-md-5.col-lg-5
= @facade.individual.birthdate
2016-10-12 14:21:54 +02:00
2016-01-06 17:12:03 +01:00
- if @facade.dossier.mandataire_social && gestionnaire_signed_in?
2016-01-06 14:54:00 +01:00
.mandataire_social.text-success.center
%br
="Il est probable que le soumissionnaire du dossier soit un des mandataire social de l'entreprise ("
%b
="#{@facade.dossier.user.given_name} #{@facade.dossier.user.family_name}"
=")"
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
2016-01-18 14:45:08 +01:00
#map.mini{class: @facade.dossier.procedure.module_api_carto.classes}
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}"}
2016-01-18 14:45:08 +01:00
%input{id: 'cadastres', type:'hidden', value: "#{@facade.dossier.cadastres.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
2016-10-03 14:36:07 +02:00
-unless champ.decorate.value.blank?
=champ.decorate.value.html_safe
2015-11-19 16:47:56 +01:00
.col-lg-6.col-md-6
=render partial: '/dossiers/pieces_justificatives'
%br
2015-11-04 11:14:07 +01:00
2016-02-08 18:16:18 +01:00
.row{style: 'text-align:right'}
2016-09-13 12:17:56 +02:00
- unless @facade.dossier.read_only?
2016-09-14 16:36:01 +02:00
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
2016-03-22 17:36:36 +01:00
- if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.size > 0
2016-09-14 16:36:01 +02:00
%a#maj_pj.btn.btn-success{"data-target" => "#UploadPJmodal",
2016-03-22 17:36:36 +01:00
"data-toggle" => "modal",
:type => "button",
style: 'margin-bottom: 15px; margin-top: -30px'}
Modifier les documents
%br
= render partial: 'users/recapitulatif/modal_upload_pj'
2016-04-19 14:08:09 +02:00
2016-10-05 14:28:10 +02:00
-if @facade.procedure.individual_with_siret
%a#add_siret.btn.btn-success{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
= "Renseigner un SIRET"
2016-04-19 14:08:09 +02:00
-if @facade.dossier.procedure.module_api_carto.use_api_carto
%a#maj_carte.btn.btn-primary{href: "/users/dossiers/#{@facade.dossier.id}/carte"}
2016-09-13 15:54:26 +02:00
= 'Modifier la carte'
2016-04-19 14:08:09 +02:00
%a#maj_infos.btn.btn-info{href: "/users/dossiers/#{@facade.dossier.id}/description"}
2016-09-13 15:54:26 +02:00
= 'Modifier le dossier'
2015-09-24 16:51:14 +02:00
2016-02-08 18:16:18 +01:00
-if gestionnaire_signed_in?
2016-09-13 12:17:56 +02:00
-if !@facade.dossier.read_only?
2015-12-24 15:10:20 +01:00
= form_tag(url_for({controller: 'backoffice/dossiers', action: :valid, dossier_id: @facade.dossier.id}), class: 'form-inline', method: 'POST') do
2016-10-19 11:23:34 +02:00
%button.action_button.btn.btn-success{'data-toggle' => :tooltip, title: 'En cliquant ici, vous figez le dossier et autorisez le dépôt du dossier pour instruction.'}
= 'Déclarer complet'
2016-04-19 14:08:09 +02:00
2015-12-24 15:10:20 +01:00
-elsif @facade.dossier.submitted?
2016-08-25 15:21:25 +02:00
= form_tag(url_for({controller: 'backoffice/dossiers', action: :receive, dossier_id: @facade.dossier.id}), class: 'form-inline', method: 'POST') do
2016-10-19 11:23:34 +02:00
%button.action_button.btn.btn-success
2016-08-25 15:21:25 +02:00
= 'Notifier de la bonne réception'
-elsif @facade.dossier.received?
2016-08-25 17:46:26 +02:00
= form_tag(url_for({controller: 'backoffice/dossiers', action: :close, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Accepter') do
2016-10-19 11:23:34 +02:00
%button.action_button.btn.btn-success
2016-08-25 17:46:26 +02:00
%i.fa.fa-check
= form_tag(url_for({controller: 'backoffice/dossiers', action: :refuse, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Refuser') do
2016-10-19 11:23:34 +02:00
%button.action_button.btn.btn-danger
2016-08-25 17:46:26 +02:00
%i.fa.fa-times
= form_tag(url_for({controller: 'backoffice/dossiers', action: :without_continuation, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Classer sans suite') do
2016-10-19 11:23:34 +02:00
%button.action_button.btn.btn-warning
2016-08-25 17:46:26 +02:00
%i.fa.fa-circle-o
2015-09-24 16:51:14 +02:00