2015-09-24 10:17:59 +02:00
|
|
|
#pieces_justificatives
|
|
|
|
%table.table
|
2016-12-02 10:39:21 +01:00
|
|
|
- if @facade.procedure.cerfa_flag?
|
2015-09-24 10:17:59 +02:00
|
|
|
%tr{id: "piece_justificative_0"}
|
2017-04-06 11:39:35 +02:00
|
|
|
%th.col-lg-6
|
2017-04-06 11:38:44 +02:00
|
|
|
= 'Formulaire'
|
2016-12-23 16:58:06 +01:00
|
|
|
%td.col-lg-6.col-md-6.col-sm-6.col-xs-6
|
2016-02-02 18:37:38 +01:00
|
|
|
- if @facade.dossier.cerfa_available?
|
2016-03-22 17:36:36 +01:00
|
|
|
%a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter
|
|
|
|
%span{style:'margin-left:12px'}
|
|
|
|
\-
|
2016-11-14 17:33:45 +01:00
|
|
|
%a.btn.fa.fa-timer{style:'color: black; padding-top: 0',
|
2016-03-22 17:36:36 +01:00
|
|
|
"data-target" => "#PJmodal",
|
|
|
|
"data-toggle" => "modal",
|
|
|
|
:type => "button",
|
|
|
|
"data-modal_title" => 'formulaires',
|
|
|
|
"data-modal_index" => 'cerfa'}
|
2015-09-24 10:17:59 +02:00
|
|
|
- else
|
|
|
|
= 'Pièce non fournie'
|
|
|
|
|
2016-10-07 15:16:03 +02:00
|
|
|
- @facade.dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative|
|
2016-03-17 14:50:10 +01:00
|
|
|
%tr{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
|
2015-09-24 10:17:59 +02:00
|
|
|
%th.col-lg-6
|
2016-03-17 14:50:10 +01:00
|
|
|
= type_de_piece_justificative.libelle
|
2016-12-23 16:58:06 +01:00
|
|
|
%td.col-lg-6.col-md-6.col-sm-6.col-xs-6
|
2016-03-17 14:50:10 +01:00
|
|
|
- if type_de_piece_justificative.api_entreprise
|
2015-09-24 10:17:59 +02:00
|
|
|
%span.text-success Nous l'avons récupéré pour vous.
|
2016-03-17 14:50:10 +01:00
|
|
|
- elsif !(@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).nil?
|
2017-04-06 15:48:27 +02:00
|
|
|
-# - if user_signed_in?
|
|
|
|
-# = 'Pièce fournie'
|
|
|
|
-# - elsif gestionnaire_signed_in?
|
2016-03-22 17:36:36 +01:00
|
|
|
%a{ href: "#{@pj.content_url}", target: '_blank' } Consulter
|
|
|
|
%span{style:'margin-left:12px'}
|
|
|
|
\-
|
2016-11-14 17:33:45 +01:00
|
|
|
%a.btn.fa.fa-timer{style:'color: black; padding-top: 0',
|
2016-03-22 17:36:36 +01:00
|
|
|
"data-target" => "#PJmodal",
|
|
|
|
"data-toggle" => "modal",
|
|
|
|
:type => "button",
|
|
|
|
"data-modal_title" => type_de_piece_justificative.libelle,
|
|
|
|
"data-modal_index" => "type_de_pj_#{type_de_piece_justificative.id}"}
|
2015-09-24 10:17:59 +02:00
|
|
|
- else
|
|
|
|
= 'Pièce non fournie'
|
2015-12-02 10:59:03 +01:00
|
|
|
|
2017-04-06 15:48:27 +02:00
|
|
|
-# - if gestionnaire_signed_in?
|
2017-04-06 11:38:44 +02:00
|
|
|
= render partial: '/dossiers/modal_historique'
|