Merge pull request #4593 from aignatov-bio/ai-sci-7428-hide-active-reminders-checkbox

Hide active reminders, if stock management disabled [SCI-7428]
This commit is contained in:
aignatov-bio 2022-11-04 11:08:56 +01:00 committed by GitHub
commit c32bf690ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,20 +48,22 @@
<!-- RIGHT TOOLBAR BLOCK --> <!-- RIGHT TOOLBAR BLOCK -->
<div class="toolbar-right-block"> <div class="toolbar-right-block">
<div class="active-reminders-filter" <% if RepositoryBase.stock_management_enabled? %>
title="<%= t('repositories.index.active_reminders.description') %>" <div class="active-reminders-filter"
data-checked-title="<%= t('repositories.index.active_reminders.checked_description') =%>" title="<%= t('repositories.index.active_reminders.description') %>"
data-unchecked-title="<%= t('repositories.index.active_reminders.description') =%>" data-checked-title="<%= t('repositories.index.active_reminders.checked_description') =%>"
> data-unchecked-title="<%= t('repositories.index.active_reminders.description') =%>"
<div class="sci-checkbox-container"> >
<input id="only_reminders" type="checkbox" class="sci-checkbox" value="1"> <div class="sci-checkbox-container">
<span class="sci-checkbox-label"></span> <input id="only_reminders" type="checkbox" class="sci-checkbox" value="1">
<span class="sci-checkbox-label"></span>
</div>
<span data-click-target="#only_reminders">
<span class="active-reminders-label"><%= t('repositories.index.active_reminders.label') %></span>
<span class="active-reminders-short-label"><%= t('repositories.index.active_reminders.short_label') %></span>
</span>
</div> </div>
<span data-click-target="#only_reminders"> <% end %>
<span class="active-reminders-label"><%= t('repositories.index.active_reminders.label') %></span>
<span class="active-reminders-short-label"><%= t('repositories.index.active_reminders.short_label') %></span>
</span>
</div>
<div class="toolbar-filters"></div> <div class="toolbar-filters"></div>
<% if @repository.is_a?(BmtRepository) %> <% if @repository.is_a?(BmtRepository) %>
<div class="toolbar-bmt-filters"> <div class="toolbar-bmt-filters">