PJ download button should be clear when PJ is available
This commit is contained in:
parent
b526c28cf9
commit
31dd45617a
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue