2018-01-30 19:17:16 +01:00
|
|
|
- pj = champ.piece_justificative_file
|
|
|
|
|
|
|
|
- if !pj.attached?
|
|
|
|
= file_field_tag "champs['#{champ.id}']",
|
|
|
|
id: "champs_#{champ.id}",
|
|
|
|
direct_upload: true,
|
2018-02-15 13:58:19 +01:00
|
|
|
mandatory: champ.mandatory?
|
2018-01-30 19:17:16 +01:00
|
|
|
- else
|
|
|
|
%a{ href: url_for(pj), target: '_blank' }
|
|
|
|
= pj.filename.to_s
|
|
|
|
%br
|
|
|
|
Modifier :
|
|
|
|
= file_field_tag "champs['#{champ.id}']",
|
|
|
|
id: "champs_#{champ.id}",
|
|
|
|
direct_upload: true
|