scinote-web/app/views/result_assets/_new.html.erb

32 lines
1.3 KiB
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<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">
2020-04-28 18:30:43 +08:00
<span>
<label>
2023-05-19 05:00:38 +08:00
<h2 class="inline-block font-normal"><%= t('assets.drag_n_drop.label_html') %></h2>
2023-06-20 21:53:33 +08:00
<span class="btn btn-light btn-sm new-asset-upload-button">
<span class="sn-icon sn-icon-import 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 %>
</label>
2018-04-26 21:02:24 +08:00
</span>
</div>
<br />
<div class="align-right new-result-assets-buttons">
<%= 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',
type: 'button '%>
</div>
<% end %>
<%= javascript_include_tag 'results/result_assets/new' %>
2016-02-12 23:52:43 +08:00
</div>