2017-04-12 11:12:05 +02:00
|
|
|
#pieces-justificatives
|
2016-12-06 15:17:18 +01:00
|
|
|
.row
|
|
|
|
- if @facade.procedure.cerfa_flag?
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-12#piece_justificative_0
|
2016-12-06 15:17:18 +01:00
|
|
|
.row.piece-row
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-6.piece-label= 'Formulaire'
|
2016-12-23 16:58:06 +01:00
|
|
|
.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off= "-"
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-5
|
2016-12-06 15:17:18 +01:00
|
|
|
- if @facade.dossier.cerfa_available?
|
|
|
|
%a{ href: "#{@facade.dossier.cerfa.last.content_url}", target: '_blank' } Consulter
|
2017-04-06 19:58:11 +02:00
|
|
|
%span{ style: 'margin-left: 12px;' }
|
2016-12-06 15:17:18 +01:00
|
|
|
\-
|
2017-04-06 19:58:11 +02:00
|
|
|
%a.btn.fa.fa-timer{ style: 'color: black; padding-top: 0;',
|
2017-04-12 11:12:05 +02:00
|
|
|
"data-target" => "#pj-modal",
|
2016-12-06 15:17:18 +01:00
|
|
|
"data-toggle" => "modal",
|
|
|
|
:type => "button",
|
|
|
|
"data-modal_title" => 'formulaires',
|
2017-04-06 19:10:25 +02:00
|
|
|
"data-modal_index" => 'cerfa' }
|
2016-12-06 15:17:18 +01:00
|
|
|
- else
|
|
|
|
= 'Pièce non fournie'
|
|
|
|
|
|
|
|
.row
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-12
|
2016-12-06 15:17:18 +01:00
|
|
|
- @facade.dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative|
|
|
|
|
.row.piece-row
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
|
2016-12-06 15:17:18 +01:00
|
|
|
.row
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-6= type_de_piece_justificative.libelle
|
|
|
|
.col-xs-6
|
2016-12-06 15:17:18 +01:00
|
|
|
- if type_de_piece_justificative.api_entreprise
|
|
|
|
%span.text-success Nous l'avons récupéré pour vous.
|
2018-01-11 19:08:04 +01:00
|
|
|
- elsif (@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).present?
|
2017-04-06 15:48:27 +02:00
|
|
|
-# - if user_signed_in?
|
|
|
|
-# = 'Pièce fournie'
|
|
|
|
-# - elsif gestionnaire_signed_in?
|
2016-12-06 15:17:18 +01:00
|
|
|
%a{ href: "#{@pj.content_url}", target: '_blank' } Consulter
|
2017-04-06 19:58:11 +02:00
|
|
|
%span{ style: 'margin-left: 12px;' }
|
2016-12-06 15:17:18 +01:00
|
|
|
\-
|
2017-04-06 19:58:11 +02:00
|
|
|
%a.btn.fa.fa-timer{ style: 'color: black; padding-top: 0;',
|
2017-04-12 11:12:05 +02:00
|
|
|
"data-target" => "#pj-modal",
|
2016-12-06 15:17:18 +01:00
|
|
|
"data-toggle" => "modal",
|
|
|
|
:type => "button",
|
|
|
|
"data-modal_title" => type_de_piece_justificative.libelle,
|
2017-04-06 19:10:25 +02:00
|
|
|
"data-modal_index" => "type_de_pj_#{type_de_piece_justificative.id}" }
|
2016-12-06 15:17:18 +01:00
|
|
|
- else
|
|
|
|
= 'Pièce non fournie'
|
|
|
|
|
2017-04-06 15:48:27 +02:00
|
|
|
-# - if gestionnaire_signed_in?
|
2016-12-06 15:17:18 +01:00
|
|
|
= render partial: '/dossiers/modal_historique'
|