From a17f2a1b70c90a9396b09b1c62f38b521088b5fd Mon Sep 17 00:00:00 2001 From: Nidhi Sarvaiya Date: Fri, 3 May 2024 13:43:01 -0400 Subject: [PATCH] Allow two decimal for value in transaction history --- 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" %> -- 2.53.0