mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Add the action Move to archived task & experiments view [SCI-7844]
This commit is contained in:
parent
1ac86b8188
commit
780781e57b
4 changed files with 4 additions and 6 deletions
|
@ -4,8 +4,7 @@ Canaid::Permissions.register_for(Experiment) do
|
|||
manage_experiment_tasks
|
||||
manage_experiment_users
|
||||
archive_experiment
|
||||
clone_experiment
|
||||
move_experiment)
|
||||
clone_experiment)
|
||||
.each do |perm|
|
||||
can perm do |_, experiment|
|
||||
experiment.active? &&
|
||||
|
|
|
@ -21,7 +21,6 @@ Canaid::Permissions.register_for(MyModule) do
|
|||
update_my_module_description
|
||||
manage_my_module_tags
|
||||
update_my_module_status
|
||||
move_my_module
|
||||
manage_my_module_steps
|
||||
complete_my_module_steps
|
||||
uncomplete_my_module_steps
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<% end %>
|
||||
<button id="editTask" class="btn btn-light single-object-action hidden only-active" data-for="editable" >
|
||||
<i class="fas fa-pen"></i>
|
||||
<span class="button-text"><%= t("experiments.table.toolbar.edit") %></span>
|
||||
<span class="button-text"><%= t("experiments.table.toolbar.edit") %></span>
|
||||
</button>
|
||||
<% if can_manage_experiment?(@experiment) %>
|
||||
<button id="duplicateTasks" class="btn btn-light multiple-object-action hidden only-active" data-url="<%= batch_clone_my_modules_experiment_path(@experiment) %>">
|
||||
|
@ -20,7 +20,7 @@
|
|||
<span class="button-text"><%= t("experiments.table.toolbar.duplicate") %></span>
|
||||
</button>
|
||||
<% end %>
|
||||
<button id="moveTask" class="btn btn-light multiple-object-action hidden only-active" data-for="moveable">
|
||||
<button id="moveTask" class="btn btn-light multiple-object-action hidden" data-for="moveable">
|
||||
<i class="fas fa-arrow-right"></i>
|
||||
<span class="button-text"><%= t("experiments.table.toolbar.move") %></span>
|
||||
</button>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<%= button_to move_modal_experiments_path(),
|
||||
class: 'btn btn-light move-experiment-btn single-object-action hidden',
|
||||
form_class: 'move-experiments-form',
|
||||
data: { for: :moveable, view_mode: 'active' },
|
||||
data: { for: :moveable },
|
||||
remote: true,
|
||||
method: :get do %>
|
||||
<span class="fas fa-arrow-right" aria-hidden="true"></span>
|
||||
|
|
Loading…
Reference in a new issue