demarches-normaliennes/app/views/new_gestionnaire/dossiers/show.html.haml

48 lines
1.7 KiB
Text
Raw Normal View History

2017-07-11 16:56:25 +02:00
= render partial: "header", locals: { dossier: @dossier }
.container
.card
.card-title Identité du demandeur
- if @dossier.entreprise.present?
= render partial: "identite_entreprise", locals: { entreprise: @dossier.entreprise }
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
- 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
%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?
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?
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