mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 06:06:24 +08:00
Add edit title for stock consumption modal [SCI-6731]
This commit is contained in:
parent
6b309871a3
commit
2481ba566a
2 changed files with 10 additions and 5 deletions
|
|
@ -4,7 +4,11 @@
|
|||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<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>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
|
|
|||
|
|
@ -1005,6 +1005,7 @@ en:
|
|||
provisioning: 'Provisioning'
|
||||
stock_modal:
|
||||
title: 'Consume %{name}'
|
||||
title_edit: 'Edit %{name} consumption'
|
||||
description: 'Enter the total amount consumed in this task.'
|
||||
amount: 'Amount'
|
||||
consumed: 'Consumed'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue