2017-07-11 16:56:25 +02:00
|
|
|
|
= render partial: "header", locals: { dossier: @dossier }
|
|
|
|
|
|
2017-07-06 16:33:36 +02:00
|
|
|
|
.container
|
|
|
|
|
.card
|
|
|
|
|
.card-title Identité du demandeur
|
|
|
|
|
- if @dossier.entreprise.present?
|
|
|
|
|
= render partial: "identite_entreprise", locals: { entreprise: @dossier.entreprise }
|
2017-07-06 16:51:01 +02:00
|
|
|
|
|
2017-07-11 15:55:08 +02:00
|
|
|
|
- if @dossier.individual.present?
|
|
|
|
|
= render partial: "identite_individual", locals: { individual: @dossier.individual }
|
|
|
|
|
|
2017-07-11 16:50:29 +02:00
|
|
|
|
.backoffice-title Formulaire
|
|
|
|
|
|
2017-09-07 18:14:45 +02:00
|
|
|
|
- champs = @dossier.ordered_champs.decorate
|
|
|
|
|
- if champs.any?
|
|
|
|
|
.card.featured
|
2017-07-11 16:50:29 +02:00
|
|
|
|
= render partial: "champs", locals: { champs: champs }
|
2017-07-06 17:52:16 +02:00
|
|
|
|
|
2017-09-08 10:16:27 +02:00
|
|
|
|
- if @dossier.procedure.use_api_carto
|
2017-07-24 20:04:41 +02:00
|
|
|
|
= render partial: "map", locals: { dossier: @dossier }
|
|
|
|
|
|
2017-07-06 17:52:16 +02:00
|
|
|
|
- if @dossier.procedure.cerfa_flag? || @dossier.types_de_piece_justificative.any?
|
|
|
|
|
.card.featured
|
|
|
|
|
.card-title Pièces jointes
|
|
|
|
|
|
2017-07-27 15:30:25 +02:00
|
|
|
|
%table.table.vertical
|
2017-07-06 17:52:16 +02:00
|
|
|
|
%tbody
|
|
|
|
|
- if @dossier.procedure.cerfa_flag?
|
|
|
|
|
%tr
|
|
|
|
|
%th Formulaire :
|
|
|
|
|
%td
|
|
|
|
|
- if @dossier.cerfa_available?
|
2017-09-08 14:24:57 +02:00
|
|
|
|
Pièce fournie -
|
|
|
|
|
= link_to "Consulter", @dossier.cerfa.last.content_url, class: "link", target: :blank
|
2017-07-06 17:52:16 +02:00
|
|
|
|
- else
|
|
|
|
|
Pièce non fournie
|
|
|
|
|
|
|
|
|
|
- @dossier.procedure.types_de_piece_justificative.each do |type_de_piece_justificative|
|
|
|
|
|
%tr
|
|
|
|
|
%th= "#{type_de_piece_justificative.libelle} :"
|
|
|
|
|
%td
|
|
|
|
|
- pj = @dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)
|
|
|
|
|
- if pj.present?
|
2017-09-08 14:24:57 +02:00
|
|
|
|
Pièce fournie -
|
|
|
|
|
= link_to "Consulter", pj.content_url, class: "link", target: :blank
|
2017-07-06 17:52:16 +02:00
|
|
|
|
- else
|
|
|
|
|
Pièce non fournie
|