mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Merge pull request #4601 from rekonder/aj_SCI_7376
Enable checkboxes for experiment table/card view for all roles [SCI-7376]
This commit is contained in:
commit
dd54a30e13
3 changed files with 9 additions and 14 deletions
|
@ -17,12 +17,10 @@
|
|||
<!-- list -->
|
||||
<div class="table-header">
|
||||
<div class="table-header-cell select-all-checkboxes">
|
||||
<% if @project_is_managable %>
|
||||
<div class="sci-checkbox-container">
|
||||
<input value="1" type="checkbox" class="sci-checkbox select-all">
|
||||
<span class="sci-checkbox-label"></span>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="sci-checkbox-container">
|
||||
<input value="1" type="checkbox" class="sci-checkbox select-all">
|
||||
<span class="sci-checkbox-label"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-header-cell"><%= t('experiments.card.name') %></div>
|
||||
<div class="table-header-cell"><%= t('experiments.id') %></div>
|
||||
|
|
|
@ -3,12 +3,10 @@
|
|||
data-edit-url=""
|
||||
data-permissions-url="<%= permissions_experiment_path(experiment) %>">
|
||||
<div class="checkbox-cell table-cell">
|
||||
<% if project_is_managable %>
|
||||
<div class="sci-checkbox-container">
|
||||
<input value="1" type="checkbox" class="sci-checkbox experiment-card-selector">
|
||||
<span class="sci-checkbox-label"></span>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="sci-checkbox-container">
|
||||
<input value="1" type="checkbox" class="sci-checkbox experiment-card-selector">
|
||||
<span class="sci-checkbox-label"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="experiment-name-cell table-cell">
|
||||
|
|
|
@ -5,11 +5,10 @@
|
|||
<div class="no-results-description"><%= t('projects.index.no_results_description') %></div>
|
||||
</div>
|
||||
<% else %>
|
||||
<% project_is_managable = can_manage_project?(@project) %>
|
||||
<% cards.each do |card| %>
|
||||
<% cache [current_user, @project, card] do %>
|
||||
<%= render partial: 'projects/show/experiment_card',
|
||||
locals: { experiment: card, project: @project, project_is_managable: project_is_managable } %>
|
||||
locals: { experiment: card, project: @project } %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue