2024-07-16 21:20:02 +08:00
|
|
|
<% provide(:head_title, t("storage_locations.index.head_title")) %>
|
|
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
|
|
|
|
|
|
|
<% if current_team %>
|
2024-07-24 18:07:06 +08:00
|
|
|
<div class="content-pane with-grey-background flexible">
|
2024-07-16 21:20:02 +08:00
|
|
|
<div class="content-header">
|
|
|
|
<div class="title-row">
|
|
|
|
<h1><%= t('storage_locations.index.head_title') %></h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-24 18:07:06 +08:00
|
|
|
<div class="content-body " data-e2e="e2e-CO-storage_-ocations">
|
2024-07-16 21:20:02 +08:00
|
|
|
<div id="storageLocationsTable" class="fixed-content-body">
|
|
|
|
<storage-locations
|
|
|
|
actions-url="<%= actions_toolbar_storage_locations_path(current_team) %>"
|
|
|
|
data-source="<%= storage_locations_path(format: :json, parent_id: params[:parent_id]) %>"
|
2024-07-19 19:24:23 +08:00
|
|
|
direct-upload-url="<%= rails_direct_uploads_url %>"
|
|
|
|
create-url="<%= storage_locations_path(parent_id: params[:parent_id]) if can_create_storage_locations?(current_team) %>"
|
2024-07-23 14:50:17 +08:00
|
|
|
storage-location-tree-url="<%= tree_storage_locations_path %>"
|
2024-07-16 21:20:02 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= javascript_include_tag 'vue_storage_locations_table' %>
|
|
|
|
<% end %>
|