The personal finance app for everyone
Make date required for new valuation form (#490)
Srirameceff08a4d6a
diff --git a/app/views/valuations/_form_row.html.erb b/app/views/valuations/_form_row.html.erbindex 3301c6cd..27ad7e5f 100644--- a/app/views/valuations/_form_row.html.erb+++ b/app/views/valuations/_form_row.html.erb@@ -6,7 +6,7 @@</div></div><div class="flex items-center justify-between grow">- <%= 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" %></div><div class="w-[296px] flex gap-2 justify-end items-center">