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">
|
2020-04-28 18:30:43 +08:00
|
|
|
<span>
|
2019-07-26 00:00:24 +08:00
|
|
|
<label>
|
2023-05-19 05:00:38 +08:00
|
|
|
<h2 class="inline-block font-normal"><%= t('assets.drag_n_drop.label_html') %></h2>
|
2019-07-26 00:00:24 +08:00
|
|
|
<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,
|
2023-05-16 15:34:36 +08:00
|
|
|
multiple: true %>
|
2019-07-26 00:00:24 +08:00
|
|
|
</label>
|
2018-04-26 21:02:24 +08:00
|
|
|
</span>
|
2019-07-26 00:00:24 +08:00
|
|
|
</div>
|
|
|
|
<br />
|
2023-05-16 15:34:36 +08:00
|
|
|
<div class="align-right new-result-assets-buttons">
|
2023-03-16 21:19:24 +08:00
|
|
|
<%= f.button t('result_assets.new.create'),
|
|
|
|
class: 'btn btn-primary save-result',
|
|
|
|
data: { href: my_module_result_assets_path(page: params[:page], order: params[:order], format: :json) } %>
|
2020-05-07 03:10:49 +08:00
|
|
|
<%= f.button t('general.cancel'),
|
2020-01-07 23:13:34 +08:00
|
|
|
class: 'btn btn-secondary cancel-new',
|
2023-03-16 21:19:24 +08:00
|
|
|
type: 'button '%>
|
|
|
|
|
2019-07-26 00:00:24 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2023-06-16 16:19:54 +08:00
|
|
|
<%= javascript_include_tag 'results/result_assets/new' %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|