Move button for archived task in card view (Update) [SCI-8253] (#5543)

* Implemet the Move task functionality for archived tasks cards view [SCI-8253]

* Fix hound [SCI-8253]

* Fix hound [SCI-8253]

* Fix toolbar buttons alignment [SCI-8253]

* Fix the position and layout of the toolbar buttons [SCI-8253]

Co-authored-by: Sboursen <dev.sboursen@gmail.com>

* Fix hound [SCI-8253]

Co-authored-by: Sboursen <dev.sboursen@gmail.com>

---------

Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
Soufiane 2023-06-02 10:04:25 +02:00 committed by GitHub
parent 790653351a
commit f16ce94164
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 13 deletions

View file

@ -6,6 +6,14 @@
max-width: calc(100% - 2rem);
}
.toolbar {
.left {
align-items: center;
display: flex;
justify-content: flex-start;
}
}
.panel-heading {
padding: 10px 15px 4px;
}

View file

@ -263,7 +263,7 @@ html {
}
.middle {
margin: 0 auto;
margin: .5rem auto;
}
.view-switch,

View file

@ -12,18 +12,18 @@
<% if @my_modules.present? %>
<% if can_manage_experiment?(@experiment) %>
<span class="left">
<div class="move-button-container collapse">
<button class="btn btn-light">
<span class="fas fa-arrow-right"></span>
<%= t('experiments.module_archive.move_option') %>
</button>
</div>
<div class="restore-button-container collapse">
<%= button_to restore_my_modules_experiment_path(@experiment), class: 'btn btn-light', method: :post do %>
<span class="fas fa-undo"></span>
<%= t('experiments.module_archive.restore_option') %>
<% end %>
</div>
<div class="move-button-container collapse">
<button class="btn btn-light">
<span class="fas fa-arrow-right"></span>
<%= t('experiments.module_archive.move_option') %>
</button>
</div>
<div class="restore-button-container collapse">
<%= button_to restore_my_modules_experiment_path(@experiment), class: 'btn btn-light', method: :post do %>
<span class="fas fa-undo"></span>
<%= t('experiments.module_archive.restore_option') %>
<% end %>
</div>
</span>
<% end %>
<%= render partial: 'task_view_dropdowns.html.erb' %>