2016-02-12 23:52:43 +08:00
|
|
|
<div class="well">
|
2019-07-26 00:00:24 +08:00
|
|
|
<%= 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 class="help_tooltips"
|
|
|
|
data-tooltiplink="<%= I18n.t('tooltips.link.protocol.step_add_files') %>"
|
|
|
|
data-tooltipcontent="<%= I18n.t('tooltips.text.protocol.step_add_files') %>">
|
|
|
|
<%= 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>
|
2018-04-26 21:02:24 +08:00
|
|
|
</span>
|
2019-07-26 00:00:24 +08:00
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="align-right">
|
|
|
|
<%= f.submit t('general.cancel'),
|
2020-01-07 23:13:34 +08:00
|
|
|
class: 'btn btn-secondary cancel-new',
|
2019-07-26 00:00:24 +08:00
|
|
|
onclick: 'DragNDropResults.destroyAll();' %>
|
|
|
|
<%= f.submit t('result_assets.new.create'),
|
2020-01-07 23:13:34 +08:00
|
|
|
class: 'btn btn-primary save-result',
|
2019-07-26 00:00:24 +08:00
|
|
|
onclick: 'DragNDropResults.processResult(event);',
|
|
|
|
disabled: true,
|
|
|
|
data: { href: my_module_result_assets_path(format: :json) } %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|