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

46 lines
1.6 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
.card.featured
2017-07-11 16:50:29 +02:00
- champs = @dossier.ordered_champs.decorate
- if champs.any?
= render partial: "champs", locals: { champs: champs }
2017-07-06 17:52:16 +02:00
2017-07-24 20:04:41 +02:00
- if @dossier.procedure.module_api_carto.present?
= 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?
= link_to "Télécharger", @dossier.cerfa.last.content_url, class: "button", target: :blank
- 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?
= link_to "Télécharger", pj.content_url, class: "button", target: :blank
- else
Pièce non fournie