2020-04-02 17:33:54 +02:00
|
|
|
<%= render_champ(@champ) %>
|
2020-03-30 15:34:56 +02:00
|
|
|
|
|
|
|
<% attachment = @champ.piece_justificative_file.attachment %>
|
|
|
|
<% if attachment.virus_scanner.pending? %>
|
|
|
|
<%= fire_event('attachment:update', { url: attachment_url(attachment.id, { signed_id: attachment.blob.signed_id, user_can_upload: true }) }.to_json ) %>
|
|
|
|
<% end %>
|
2021-03-09 18:56:57 +01:00
|
|
|
|
|
|
|
<%= focus_element("button[data-toggle-target=\".attachment-input-#{attachment.id}\"]") %>
|