From 9820646857d52cbac012610210c8cb9e1bac2d4a Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 18 Mar 2026 22:02:53 -0400 Subject: [PATCH] allow math on unit price field --- app/views/items/_form.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/items/_form.html.erb b/app/views/items/_form.html.erb index 2f82b56..e181d47 100644 --- a/app/views/items/_form.html.erb +++ b/app/views/items/_form.html.erb @@ -15,7 +15,10 @@

- <%= f.number_field :unit_price, step: 0.01, size: 10 %> + <%= f.text_field :unit_price, + class: "price-field", + inputmode: "decimal", + autocomplete: "off"%>