10 lines
593 B
Text
10 lines
593 B
Text
<%= fields_for @champ.input_name, @champ do |form| %>
|
|
<%= render_to_element("##{@champ.input_group_id}", partial: "shared/dossiers/editable_champs/editable_champ", locals: { champ: @champ, form: form }, outer: true) %>
|
|
<% end %>
|
|
|
|
<% 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 %>
|
|
|
|
<%= focus_element("button[data-toggle-target=\".attachment-input-#{attachment.id}\"]") %>
|