mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 15:24:57 +08:00
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:
parent
790653351a
commit
f16ce94164
3 changed files with 21 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -263,7 +263,7 @@ html {
|
|||
}
|
||||
|
||||
.middle {
|
||||
margin: 0 auto;
|
||||
margin: .5rem auto;
|
||||
}
|
||||
|
||||
.view-switch,
|
||||
|
|
|
@ -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' %>
|
||||
|
|
Loading…
Reference in a new issue