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
|
2017-04-06 11:38:44 +02:00
|
|
|
- unless dossier.procedure.lien_demarche.blank?
|
2017-01-18 17:13:54 +01:00
|
|
|
%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
|
2017-04-26 14:55:14 +02:00
|
|
|
-# %a#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-04-06 11:38:44 +02:00
|
|
|
- if dossier.cerfa_available?
|
2017-01-31 17:58:44 +01:00
|
|
|
%span.btn.btn-sm.btn-file.btn-success
|
|
|
|
Modifier
|
2017-04-26 14:55:14 +02:00
|
|
|
%input#cerfa_pdf{ type: 'file', name: 'cerfa_pdf', accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes }
|
2017-04-06 11:38:44 +02:00
|
|
|
- else
|
2017-04-26 14:55:14 +02:00
|
|
|
%input#cerfa_pdf{ type: 'file', name: 'cerfa_pdf', accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes }
|
2017-01-31 17:58:44 +01:00
|
|
|
|
2017-03-30 16:12:26 +02:00
|
|
|
- dossier.types_de_piece_justificative.order('order_place ASC').each do |tpj|
|
2017-01-31 17:58:44 +01:00
|
|
|
%tr
|
2017-01-18 17:13:54 +01:00
|
|
|
%th.piece-libelle
|
2017-03-30 16:12:26 +02:00
|
|
|
= tpj.mandatory ? tpj.libelle + ' *' : tpj.libelle
|
2017-05-05 12:37:11 +02:00
|
|
|
%br
|
|
|
|
.piece-description= tpj.description
|
2017-01-18 17:13:54 +01:00
|
|
|
|
|
|
|
%td
|
2017-03-30 16:12:26 +02:00
|
|
|
- unless tpj.lien_demarche.blank?
|
2017-01-18 17:13:54 +01:00
|
|
|
%em
|
|
|
|
Récupérer le formulaire vierge pour mon dossier :
|
2017-03-30 16:12:26 +02:00
|
|
|
= link_to "Télécharger", tpj.lien_demarche, target: :blank
|
2017-01-18 17:13:54 +01:00
|
|
|
|
|
|
|
%td
|
2017-03-30 16:12:26 +02:00
|
|
|
- if tpj.api_entreprise
|
|
|
|
%span.text-success{ id: "piece_justificative_#{tpj.id}" } Nous l'avons récupéré pour vous.
|
2017-04-06 11:38:44 +02:00
|
|
|
- else
|
2017-08-29 12:33:31 +02:00
|
|
|
- if !dossier.was_piece_justificative_uploaded_for_type_id?(tpj.id)
|
2017-03-30 16:12:26 +02:00
|
|
|
= file_field_tag "piece_justificative_#{tpj.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|
2017-04-06 11:38:44 +02:00
|
|
|
- else
|
2017-11-21 14:09:37 +01:00
|
|
|
- pj = dossier.retrieve_last_piece_justificative_by_type(tpj.id)
|
|
|
|
%a{ href: pj.content_url, target: '_blank' }
|
|
|
|
= pj.original_filename
|
2017-01-31 17:58:44 +01:00
|
|
|
%span.btn.btn-sm.btn-file.btn-success
|
|
|
|
Modifier
|
2017-03-30 16:12:26 +02:00
|
|
|
= file_field_tag "piece_justificative_#{tpj.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|