2022-10-20 16:42:38 +08:00
|
|
|
<% provide(:head_title, t("experiments.table.head_title", experiment: h(@experiment.name)).html_safe) %>
|
|
|
|
<% provide(:sidebar_title, t("sidebar.my_modules.sidebar_title")) %>
|
|
|
|
<% provide(:sidebar_url, sidebar_experiment_path(@experiment)) %>
|
|
|
|
<% provide(:container_class, 'no-second-nav-container') %>
|
|
|
|
|
2022-11-24 21:49:42 +08:00
|
|
|
<div class="content-pane flexible experiment-new-my_module <%= params[:view_mode] %>" id="experimentTable">
|
2022-10-20 16:42:38 +08:00
|
|
|
<%= render partial: 'experiments/show_header' %>
|
2022-11-07 18:49:25 +08:00
|
|
|
<%= render partial: 'experiments/table_toolbar' %>
|
2022-10-20 16:42:38 +08:00
|
|
|
<div class="experiment-table-container">
|
|
|
|
<div class="experiment-table"
|
|
|
|
style="--columns-count: <%= Experiments::TableViewService::COLUMNS.length%>"
|
2022-11-23 21:42:02 +08:00
|
|
|
data-my-modules-url="<%= load_table_experiment_path(@experiment, view_mode: params[:view_mode]) %>"
|
|
|
|
data-move-modules-modal-url="<%= move_modules_modal_experiment_path(@experiment) %>"
|
|
|
|
data-move-modules-url="<%= move_modules_experiment_path(@experiment) %>"
|
2022-10-20 16:42:38 +08:00
|
|
|
>
|
|
|
|
<div class="table-header">
|
|
|
|
<div class="table-header-cell select-all-checkboxes">
|
|
|
|
<div class="sci-checkbox-container">
|
|
|
|
<input type="checkbox" class="sci-checkbox">
|
|
|
|
<span class="sci-checkbox-label"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% Experiments::TableViewService::COLUMNS.each do |col| %>
|
2022-12-06 21:51:11 +08:00
|
|
|
<div class="table-header-cell <%= col %>-column <%= 'hidden' unless col.to_s.in?(@my_module_visible_table_columns) || col == :task_name %>">
|
2022-10-20 16:42:38 +08:00
|
|
|
<%= t("experiments.table.column.#{col}_html") %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div class="table-header-cell"></div>
|
|
|
|
</div>
|
|
|
|
<div class="table-body"></div>
|
|
|
|
</div>
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: 'experiments/no_task_results' %>
|
2023-05-04 17:29:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
<div id="actionToolbar" data-behaviour="vue">
|
|
|
|
<action-toolbar actions-url="<%= actions_toolbar_my_modules_url %>" />
|
|
|
|
</div>
|
2022-10-20 16:42:38 +08:00
|
|
|
</div>
|
2023-01-20 17:21:52 +08:00
|
|
|
<%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: nil } %>
|
2022-10-20 16:42:38 +08:00
|
|
|
</div>
|
|
|
|
|
2022-11-07 18:46:54 +08:00
|
|
|
<template id="experimentTablePlaceholder">
|
2023-01-05 20:10:51 +08:00
|
|
|
<div class="table-row-placeholder">
|
2022-11-07 18:46:54 +08:00
|
|
|
<div class="header"></div>
|
|
|
|
<% 6.times do |i| %>
|
|
|
|
<div class="placeholder-cell line-<%= i %>"></div>
|
|
|
|
<% end %>
|
|
|
|
<div class="placeholder-cell circle-0"></div>
|
|
|
|
<% 2.times do |i| %>
|
|
|
|
<div class="placeholder-cell line-<%= 6 + i %>"></div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2023-01-05 20:10:51 +08:00
|
|
|
<div class="table-row-placeholder-divider"></div>
|
2022-11-07 18:46:54 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="experimentTableEndOfList">
|
|
|
|
<div class="experiment-table-list-end-placeholder">
|
|
|
|
<i class="fas fa-flag-checkered"></i>
|
|
|
|
<span><%= t('projects.index.end_of_list_placeholder') %></span>
|
|
|
|
<i class="fas fa-flag-checkered"></i>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-11-11 18:22:25 +08:00
|
|
|
<%= render partial: "canvas/edit/modal/edit_module" %>
|
2022-11-15 19:02:20 +08:00
|
|
|
<%= render partial: "experiments/table_display_modal"%>
|
2022-10-20 16:42:38 +08:00
|
|
|
|
2023-05-04 17:29:19 +08:00
|
|
|
<%= javascript_include_tag "vue_components_action_toolbar" %>
|
2022-11-02 22:17:10 +08:00
|
|
|
<%= javascript_include_tag("my_modules/tags") %>
|
2022-10-20 16:42:38 +08:00
|
|
|
<%= javascript_include_tag("experiments/table") %>
|
2022-12-07 21:51:48 +08:00
|
|
|
<%= javascript_include_tag("experiments/dropdown_actions") %>
|