34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
#pieces_justificatives
|
|
-#%h3.text-info Liste des pièces justificatives
|
|
-#%br
|
|
|
|
%table.table
|
|
-if @facade.procedure.lien_demarche != nil
|
|
%tr{id: "piece_justificative_0"}
|
|
%th{class:'col-lg-6'}
|
|
='Formulaire'
|
|
%td.col-lg-6.col-md-6
|
|
- if !@facade.dossier.cerfa.empty?
|
|
- if user_signed_in?
|
|
= 'Pièce fournie'
|
|
- elsif gestionnaire_signed_in?
|
|
%a{ href: "#{(Downloader.new @facade.dossier.cerfa.content, 'CERFA').url}", target: '_blank' } Consulter
|
|
- else
|
|
= 'Pièce non fournie'
|
|
|
|
- @facade.dossier.pieces_justificatives.each do |piece_justificative|
|
|
%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?
|
|
- 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
|
|
- else
|
|
= 'Pièce non fournie'
|
|
|
|
|