mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
32 lines
1.4 KiB
Text
32 lines
1.4 KiB
Text
<div class="well">
|
|
<%= form_for(@result, url: my_module_result_assets_path(format: :json), data: { type: :json }) do |f| %>
|
|
<div id="new-result-assets-select" class="text-center new-asset-box">
|
|
<span>
|
|
<%= t('assets.drag_n_drop.label_html') %>
|
|
<label>
|
|
<span class="btn btn-default new-asset-upload-button">
|
|
<span class="fas fa-file-upload new-asset-upload-icon"></span>
|
|
<%= t('assets.drag_n_drop.browse_label') %>
|
|
</span>
|
|
<%= f.file_field :file,
|
|
id: 'drag-n-drop-assets',
|
|
class: 'drag-n-drop-file-input',
|
|
direct_upload: true,
|
|
multiple: true,
|
|
onchange: "DragNDropResults.init(this.files);" %>
|
|
</label>
|
|
</span>
|
|
</div>
|
|
<br />
|
|
<div class="align-right">
|
|
<%= f.button t('general.cancel'),
|
|
class: 'btn btn-secondary cancel-new',
|
|
onclick: 'DragNDropResults.destroyAll();' %>
|
|
<%= f.button t('result_assets.new.create'),
|
|
class: 'btn btn-primary save-result',
|
|
onclick: 'DragNDropResults.processResult(event);',
|
|
disabled: true,
|
|
data: { href: my_module_result_assets_path(page: params[:page], order: params[:order], format: :json) } %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|