<%= bootstrap_form_for(@result, url: result_asset_path(format: :json), remote: true, multipart: true, data: { type: :json }) do |f| %>
<%= f.text_field :name, style: "margin-top: 10px;" %>
<%= f.fields_for :asset do |ff| %>
<%=t "result_assets.edit.uploaded_asset" %>
<%= ff.object.file_file_name %>
<%= ff.file_field :file %>
<% end %>
<%= f.submit t("result_assets.edit.update"), class: 'btn btn-primary', onclick: "processResult(event, ResultTypeEnum.FILE, #{direct_upload});" %>
<% end %>