-
-
Notifications
You must be signed in to change notification settings - Fork 324
Expand file tree
/
Copy path_archive_overlay.html.erb
More file actions
35 lines (33 loc) · 1.13 KB
/
Copy path_archive_overlay.html.erb
File metadata and controls
35 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<div id="overlay_toolbar">
<div class="toolbar_buttons">
<% if can? :create, Alchemy::Attachment %>
<div class="toolbar_button">
<%= render 'alchemy/admin/uploader/button',
object: Alchemy::Attachment.new,
dropzone: '#assign_file_list',
file_attribute: 'file',
in_dialog: true,
accept: Array(search_filter_params[:only]).map { |extension|
Marcel::MimeType.for(extension:)
}.join(",").presence,
redirect_url: admin_attachments_path(
form_field_id: @form_field_id
) %>
</div>
<% end %>
</div>
<%= render 'alchemy/admin/partials/remote_search_form' %>
</div>
<div id="assign_file_list" class="with_padding<%= search_filter_params[:tagged_with].present? ? ' filtered' : '' %>">
<div id="library_sidebar">
<%= render 'filter_bar' if resource_has_filters %>
<% if Alchemy::Attachment.tag_counts.any? %>
<div class="tag-list">
<%= render 'tag_list' %>
</div>
<% end %>
</div>
<div id="overlay_file_list" class="with_tag_list">
<%= render 'overlay_file_list' %>
</div>
</div>