PieceJustificative: fix gestionnaire view when pj champ is not filled
This commit is contained in:
parent
81cb00c673
commit
2b3672979b
1 changed files with 5 additions and 2 deletions
|
@ -35,8 +35,11 @@
|
||||||
= "#{c.libelle} :"
|
= "#{c.libelle} :"
|
||||||
%td.rich-text
|
%td.rich-text
|
||||||
- pj = c.piece_justificative_file
|
- pj = c.piece_justificative_file
|
||||||
%a{ href: url_for(pj), target: '_blank' }
|
- if pj.attached?
|
||||||
= pj.filename.to_s
|
%a{ href: url_for(pj), target: '_blank' }
|
||||||
|
= pj.filename.to_s
|
||||||
|
- else
|
||||||
|
Pièce justificative non fournie
|
||||||
- else
|
- else
|
||||||
%th.libelle
|
%th.libelle
|
||||||
= "#{c.libelle} :"
|
= "#{c.libelle} :"
|
||||||
|
|
Loading…
Add table
Reference in a new issue