2016-03-22 17:36:36 +01:00
|
|
|
|
2017-01-31 17:58:44 +01:00
|
|
|
%table.table
|
|
|
|
- if dossier.procedure.cerfa_flag
|
|
|
|
%tr
|
2017-01-18 17:13:54 +01:00
|
|
|
%th
|
2017-01-31 17:58:44 +01:00
|
|
|
Formulaire de demande ou CERFA (complété et numérisé)
|
2017-01-18 17:13:54 +01:00
|
|
|
%td
|
|
|
|
-unless dossier.procedure.lien_demarche.blank?
|
|
|
|
%em
|
|
|
|
Récupérer le formulaire de demande ou CERFA vierge pour mon dossier :
|
|
|
|
= link_to "Télécharger", "#{dossier.procedure.lien_demarche}", target: :blank, id: :lien_cerfa
|
|
|
|
-# %a{ id: 'lien_cerfa', href: "#{dossier.procedure.lien_demarche}", target: '_blank'} Télécharger
|
2016-03-22 17:36:36 +01:00
|
|
|
|
2017-01-18 17:13:54 +01:00
|
|
|
%td
|
2017-01-31 17:58:44 +01:00
|
|
|
-if dossier.cerfa_available?
|
|
|
|
%span.btn.btn-sm.btn-file.btn-success
|
|
|
|
Modifier
|
|
|
|
%input{type: 'file', name:'cerfa_pdf', id:'cerfa_pdf', accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes }
|
|
|
|
-else
|
|
|
|
%input{type: 'file', name:'cerfa_pdf', id:'cerfa_pdf', accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes }
|
|
|
|
|
|
|
|
- dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative|
|
|
|
|
%tr
|
2017-01-18 17:13:54 +01:00
|
|
|
%th.piece-libelle
|
2017-01-31 17:58:44 +01:00
|
|
|
= type_de_piece_justificative.libelle
|
2017-01-18 17:13:54 +01:00
|
|
|
|
|
|
|
%td
|
|
|
|
- unless type_de_piece_justificative.lien_demarche.blank?
|
|
|
|
%em
|
|
|
|
Récupérer le formulaire vierge pour mon dossier :
|
|
|
|
= link_to "Télécharger", type_de_piece_justificative.lien_demarche, target: :blank
|
|
|
|
|
|
|
|
%td
|
2017-01-31 17:58:44 +01:00
|
|
|
-if type_de_piece_justificative.api_entreprise
|
|
|
|
%span.text-success{ id: "piece_justificative_#{type_de_piece_justificative.id}" } Nous l'avons récupéré pour vous.
|
|
|
|
-else
|
|
|
|
-if dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id).nil?
|
|
|
|
= file_field_tag "piece_justificative_#{type_de_piece_justificative.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|
|
|
|
-else
|
|
|
|
%span.btn.btn-sm.btn-file.btn-success
|
|
|
|
Modifier
|
|
|
|
= file_field_tag "piece_justificative_#{type_de_piece_justificative.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|