2022-11-07 18:49:25 +08:00
|
|
|
<div class="toolbar-row">
|
|
|
|
<div class="toolbar-left-block">
|
|
|
|
<% if can_manage_experiment?(@experiment) %>
|
2022-11-24 21:49:42 +08:00
|
|
|
<%= link_to modules_new_experiment_path(@experiment, view_mode:'table'),
|
|
|
|
class: 'btn btn-primary new-my-module-button only-active',
|
|
|
|
id: 'createTask',
|
|
|
|
data: { view_mode: 'active' },
|
|
|
|
remote: true do %>
|
|
|
|
<span class="fas fa-plus"></span>
|
|
|
|
<span class="hidden-xs"><%= t('experiments.table.toolbar.new') %></span>
|
|
|
|
<% end %>
|
2022-11-07 18:49:25 +08:00
|
|
|
<% end %>
|
2022-11-24 19:07:52 +08:00
|
|
|
<button id="editTask" class="btn btn-light single-object-action hidden only-active" data-for="editable" >
|
2022-11-07 18:49:25 +08:00
|
|
|
<i class="fas fa-pen"></i>
|
2023-01-27 17:40:01 +08:00
|
|
|
<span class="button-text"><%= t("experiments.table.toolbar.edit") %></span>
|
2022-11-07 18:49:25 +08:00
|
|
|
</button>
|
|
|
|
<% if can_manage_experiment?(@experiment) %>
|
2022-12-01 22:08:59 +08:00
|
|
|
<button id="duplicateTasks" class="btn btn-light multiple-object-action hidden only-active" data-url="<%= batch_clone_my_modules_experiment_path(@experiment) %>">
|
2022-11-07 18:49:25 +08:00
|
|
|
<i class="fas fa-copy"></i>
|
2023-01-16 23:26:37 +08:00
|
|
|
<span class="button-text"><%= t("experiments.table.toolbar.duplicate") %></span>
|
2022-11-07 18:49:25 +08:00
|
|
|
</button>
|
|
|
|
<% end %>
|
2023-01-27 17:40:01 +08:00
|
|
|
<button id="moveTask" class="btn btn-light multiple-object-action hidden" data-for="moveable">
|
2022-11-07 18:49:25 +08:00
|
|
|
<i class="fas fa-arrow-right"></i>
|
2023-01-16 23:26:37 +08:00
|
|
|
<span class="button-text"><%= t("experiments.table.toolbar.move") %></span>
|
2022-11-07 18:49:25 +08:00
|
|
|
</button>
|
2022-11-24 19:07:52 +08:00
|
|
|
<button id="archiveTask" class="btn btn-light multiple-object-action hidden only-active" data-url="<%= archive_my_modules_experiment_path(@experiment) %>" data-for="archivable">
|
2022-11-07 18:49:25 +08:00
|
|
|
<i class="fas fa-archive"></i>
|
2023-01-16 23:26:37 +08:00
|
|
|
<span class="button-text"><%= t("experiments.table.toolbar.archive") %></span>
|
2022-11-07 18:49:25 +08:00
|
|
|
</button>
|
2022-11-28 19:44:15 +08:00
|
|
|
<button id="restoreTask" class="btn btn-light multiple-object-action hidden only-archive" data-url="<%= restore_my_modules_experiment_path(@experiment) %>" data-for="restorable">
|
|
|
|
<i class="fas fa-undo"></i>
|
2023-01-16 23:26:37 +08:00
|
|
|
<span class="button-text"><%= t("experiments.table.toolbar.restore") %></span>
|
2022-11-28 19:44:15 +08:00
|
|
|
</button>
|
2022-11-07 18:49:25 +08:00
|
|
|
</div>
|
|
|
|
<div class="toolbar-right-block">
|
2022-11-15 19:02:20 +08:00
|
|
|
<button id="taskDataDisplay" class="btn btn-light" data-toggle="modal" data-target="#tableDisplayModal">
|
2022-11-07 18:49:25 +08:00
|
|
|
<i class="fas fa-eye"></i>
|
2023-01-16 23:26:37 +08:00
|
|
|
<span class="button-text"><%= t("experiments.table.toolbar.task_data") %></span>
|
2022-11-07 18:49:25 +08:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-24 21:49:42 +08:00
|
|
|
|
|
|
|
<%= javascript_include_tag("experiments/show") %>
|