use disabled property for input and fix style
This commit is contained in:
parent
f1ae2724c6
commit
014a62aa11
3 changed files with 7 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ module OrdersHelper
|
|||
units_expected = (order_article.units_billed or order_article.units_to_order)
|
||||
form.text_field :units_received, class: 'input-nano package units_received',
|
||||
data: {'units-expected' => units_expected},
|
||||
readonly: order_article.result_manually_changed? ? "readonly" : nil,
|
||||
disabled: order_article.result_manually_changed?,
|
||||
title: order_article.result_manually_changed? ? t('.locked_to_protect_manual_update') : nil,
|
||||
autocomplete: 'off'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue