From eceff08a4d6a858144be4cf86f82577c59cb34c2 Mon Sep 17 00:00:00 2001 From: Sriram Date: Tue, 27 Feb 2024 20:11:21 +0530 Subject: [PATCH] Make date required for new valuation form (#490) Co-authored-by: Sriram Krishnan --- 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 3301c6cd..27ad7e5f 100644 --- a/app/views/valuations/_form_row.html.erb +++ b/app/views/valuations/_form_row.html.erb @@ -6,7 +6,7 @@
- <%= f.date_field :date, 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.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, step: :any, placeholder: number_to_currency(0), in: 0.00..100000000.00, required: 'required', class: "bg-white border border-alpha-black-200 rounded-lg shadow-xs text-gray-900 text-sm px-3 py-1.5 text-right" %>