Skip to content

Commit 1b63f7c

Browse files
committed
changed issue supply item's input quantity type from text to number with step:0.1
1 parent d1a0d39 commit 1b63f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/helpers/supply_items_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def issue_supply_item_form_tag(issue_supply_item, label: false, deletable: false
1212
content_tag :p, id: "#{id}_wrap", class: 'issue_supply_item_wrap' do
1313
tags = [
1414
content_tag(:label, supply_item.name, for: id, class: "supply-item"),
15-
text_field_tag('issue[issue_supply_items_attributes][][quantity]',
16-
issue_supply_item.quantity, id: id, size: 3),
15+
number_field_tag('issue[issue_supply_items_attributes][][quantity]',
16+
issue_supply_item.quantity, id: id, step: 0.1),
1717
content_tag(:span, supply_item.unit_name, class: 'unit'),
1818
]
1919
tags << link_to('', '#', class: 'icon icon-del') if deletable

0 commit comments

Comments
 (0)