2015-09-24 10:17:59 +02:00
|
|
|
#pieces_justificatives
|
2015-11-19 16:47:56 +01:00
|
|
|
-#%h3.text-info Liste des pièces justificatives
|
|
|
|
-#%br
|
2015-12-24 15:10:20 +01:00
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
%table.table
|
2015-12-24 15:10:20 +01:00
|
|
|
-if @facade.procedure.lien_demarche != nil
|
2015-09-24 10:17:59 +02:00
|
|
|
%tr{id: "piece_justificative_0"}
|
|
|
|
%th{class:'col-lg-6'}
|
2016-01-08 14:58:22 +01:00
|
|
|
='Formulaire'
|
2015-09-24 10:17:59 +02:00
|
|
|
%td.col-lg-6.col-md-6
|
2016-02-02 18:37:38 +01:00
|
|
|
- if @facade.dossier.cerfa_available?
|
2015-09-24 10:17:59 +02:00
|
|
|
- if user_signed_in?
|
|
|
|
= 'Pièce fournie'
|
|
|
|
- elsif gestionnaire_signed_in?
|
2016-01-05 16:27:31 +01:00
|
|
|
%a{ href: "#{(Downloader.new @facade.dossier.cerfa.content, 'CERFA').url}", target: '_blank' } Consulter
|
2015-09-24 10:17:59 +02:00
|
|
|
- else
|
|
|
|
= 'Pièce non fournie'
|
|
|
|
|
2015-12-24 15:10:20 +01:00
|
|
|
- @facade.dossier.pieces_justificatives.each do |piece_justificative|
|
2015-09-24 10:17:59 +02:00
|
|
|
%tr{ id: "piece_justificative_#{piece_justificative.type}" }
|
|
|
|
%th.col-lg-6
|
|
|
|
= piece_justificative.libelle
|
|
|
|
%td.col-lg-6.col-md-6
|
|
|
|
- if piece_justificative.api_entreprise
|
|
|
|
%span.text-success Nous l'avons récupéré pour vous.
|
|
|
|
- elsif !piece_justificative.empty?
|
2016-01-05 16:27:31 +01:00
|
|
|
- if user_signed_in?
|
|
|
|
= 'Pièce fournie'
|
|
|
|
- elsif gestionnaire_signed_in?
|
|
|
|
%a{ href: "#{(Downloader.new piece_justificative.content, piece_justificative.type_de_piece_justificative.libelle).url}", target: '_blank' } Consulter
|
2015-09-24 10:17:59 +02:00
|
|
|
- else
|
|
|
|
= 'Pièce non fournie'
|
2015-12-02 10:59:03 +01:00
|
|
|
|
2015-10-08 16:07:01 +02:00
|
|
|
|