2017-12-07 11:52:35 +01:00
|
|
|
|
%table.table.vertical.pj
|
2017-10-16 17:01:12 +02:00
|
|
|
|
%tbody
|
|
|
|
|
- if dossier.procedure.cerfa_flag?
|
|
|
|
|
%tr
|
|
|
|
|
%th Formulaire :
|
|
|
|
|
%td
|
|
|
|
|
- if @dossier.cerfa_available?
|
|
|
|
|
= link_to "Télécharger", @dossier.cerfa.last.content_url, class: "link", target: :blank
|
|
|
|
|
- else
|
|
|
|
|
Pièce non fournie
|
|
|
|
|
|
|
|
|
|
- dossier.procedure.types_de_piece_justificative.each do |type_de_piece_justificative|
|
|
|
|
|
%tr
|
|
|
|
|
%th= "#{type_de_piece_justificative.libelle} :"
|
2017-12-07 11:52:35 +01:00
|
|
|
|
- pjs = dossier.retrieve_all_piece_justificative_by_type(type_de_piece_justificative.id).to_ary.dup
|
|
|
|
|
- if pjs.present?
|
|
|
|
|
- first_pj = pjs.pop
|
|
|
|
|
%td= display_pj_filename(first_pj)
|
|
|
|
|
%td= link_to "Télécharger", first_pj.content_url, class: "link", target: :blank
|
|
|
|
|
%td
|
|
|
|
|
- if pjs.present?
|
|
|
|
|
%span.button.dropdown
|
|
|
|
|
anciennes versions
|
|
|
|
|
.dropdown-content.fade-in-down
|
|
|
|
|
%ul.dropdown-items
|
|
|
|
|
- pjs.each do |pj|
|
|
|
|
|
%li
|
|
|
|
|
= link_to pj.content_url, { target: :blank } do
|
|
|
|
|
%span.filename= display_pj_filename(pj)
|
|
|
|
|
%span
|
|
|
|
|
ajoutée le #{pj.created_at.localtime.strftime('%d/%m %H:%M')}
|
|
|
|
|
- else
|
|
|
|
|
%td Pièce non fournie
|