PJ download button should be clear when PJ is available

This commit is contained in:
Mathieu Magnin 2017-09-08 14:24:57 +02:00 committed by Simon Lehericey
parent b526c28cf9
commit 31dd45617a

View file

@ -30,7 +30,8 @@
%th Formulaire : %th Formulaire :
%td %td
- if @dossier.cerfa_available? - if @dossier.cerfa_available?
= link_to "Télécharger", @dossier.cerfa.last.content_url, class: "button", target: :blank Pièce fournie -
= link_to "Consulter", @dossier.cerfa.last.content_url, class: "link", target: :blank
- else - else
Pièce non fournie Pièce non fournie
@ -40,6 +41,7 @@
%td %td
- pj = @dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id) - pj = @dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)
- if pj.present? - if pj.present?
= link_to "Télécharger", pj.content_url, class: "button", target: :blank Pièce fournie -
= link_to "Consulter", pj.content_url, class: "link", target: :blank
- else - else
Pièce non fournie Pièce non fournie