From 0616d3e2b7708fe5b95dc7a86c45e3abcde0ecf5 Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Sat, 4 May 2024 12:36:36 -0400 Subject: [PATCH] Allow two decimal for value in transaction history (#711) --- app/views/valuations/_form_row.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/valuations/_form_row.html.erb b/app/views/valuations/_form_row.html.erb index 662979ea..3f99be4d 100644 --- a/app/views/valuations/_form_row.html.erb +++ b/app/views/valuations/_form_row.html.erb @@ -7,7 +7,7 @@
<%= f.date_field :date, required: "required", class: "border border-alpha-black-200 bg-white rounded-lg shadow-xs min-w-[200px] px-3 py-1.5 text-gray-900 text-sm" %> - <%= f.number_field :value, required: "required", placeholder: "0.00", class: "bg-white border border-alpha-black-200 rounded-lg shadow-xs text-gray-900 text-sm px-3 py-1.5 text-right" %> + <%= f.number_field :value, required: "required", placeholder: "0.00", step: "0.01", class: "bg-white border border-alpha-black-200 rounded-lg shadow-xs text-gray-900 text-sm px-3 py-1.5 text-right" %>
<%= link_to "Cancel", account_path(@valuation.account), class: "text-sm text-gray-900 hover:text-gray-800 font-medium px-3 py-1.5" %>