mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
706c2e492b
- Use the correct arrow-left/arrow-right icons. - Show the tasks of active experiments in archived branch in the Navigator. - Fix minor style issues in P/E/T. Co-authored-by: Sboursen <dev.sboursen@gmail.com>
31 lines
1.4 KiB
Text
31 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>
|
|
<label class="flex align-center justify-center">
|
|
<h2 class="inline-block font-normal my-auto"><%= t('assets.drag_n_drop.label_html') %></h2>
|
|
<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>
|
|
</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) } %>
|
|
<%= f.button t('general.cancel'),
|
|
class: 'btn btn-secondary cancel-new',
|
|
type: 'button '%>
|
|
|
|
</div>
|
|
<% end %>
|
|
<%= javascript_include_tag 'results/result_assets/new' %>
|
|
</div>
|