Merge pull request #4028 from aignatov-bio/ai-sci-6731-fix-edit-title-for-stock-consumption-modal

Add edit title for stock consumption modal [SCI-6731]
This commit is contained in:
aignatov-bio 2022-04-15 14:43:58 +02:00 committed by GitHub
commit a1570de3da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -4,7 +4,11 @@
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
<%= t('my_modules.repository.stock_modal.title', name: @repository_row.name)%> <% if @module_repository_row.stock_consumption %>
<%= t('my_modules.repository.stock_modal.title_edit', name: @repository_row.name)%>
<% else %>
<%= t('my_modules.repository.stock_modal.title', name: @repository_row.name)%>
<% end %>
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">

View file

@ -1005,6 +1005,7 @@ en:
provisioning: 'Provisioning' provisioning: 'Provisioning'
stock_modal: stock_modal:
title: 'Consume %{name}' title: 'Consume %{name}'
title_edit: 'Edit %{name} consumption'
description: 'Enter the total amount consumed in this task.' description: 'Enter the total amount consumed in this task.'
amount: 'Amount' amount: 'Amount'
consumed: 'Consumed' consumed: 'Consumed'