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-12-06 07:23:22 +08:00
|
|
|
<% if params[:view_mode] == "archived" %>
|
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<%= render partial: 'shared/sidebar/archived_my_modules.html.erb', locals: { experiment: @experiment, my_modules: @archived_modules } %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= content_for :sidebar do %>
|
|
|
|
<%= render partial: 'shared/sidebar/my_modules.html.erb', locals: { experiment: @experiment, my_modules: @active_modules } %>
|
|
|
|
<% end %>
|
2022-10-20 16:42:38 +08:00
|
|
|
<% end %>
|
|
|
|
|
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-11-15 19:02:20 +08:00
|
|
|
<div class="table-header-cell <%= col %>-column">
|
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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-11-07 18:46:54 +08:00
|
|
|
<template id="experimentTablePlaceholder">
|
|
|
|
<div class="table-row-placeholder table-row">
|
|
|
|
<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>
|
|
|
|
</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-02 22:17:10 +08:00
|
|
|
<%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: nil } %>
|
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
|
|
|
|
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") %>
|