PieceJustificative: fix gestionnaire view when pj champ is not filled

This commit is contained in:
simon lehericey 2018-02-26 10:48:10 +01:00
parent 81cb00c673
commit 2b3672979b

View file

@ -35,8 +35,11 @@
= "#{c.libelle} :"
%td.rich-text
- pj = c.piece_justificative_file
%a{ href: url_for(pj), target: '_blank' }
= pj.filename.to_s
- if pj.attached?
%a{ href: url_for(pj), target: '_blank' }
= pj.filename.to_s
- else
Pièce justificative non fournie
- else
%th.libelle
= "#{c.libelle} :"