From 388b0361db9380c098f178ad0811f5b63cf6d670 Mon Sep 17 00:00:00 2001 From: Tristan <33517218+TristanB17@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:31:07 -0600 Subject: [PATCH] change broker broker staff calendar to match prod dates (#4403) --- .../bs4/v1/forms/broker/_personal_information.html.erb | 2 +- .../bs4/v1/forms/broker/_staff_registration.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/ui-components/bs4/v1/forms/broker/_personal_information.html.erb b/app/views/ui-components/bs4/v1/forms/broker/_personal_information.html.erb index be43a45326f..71473b29925 100644 --- a/app/views/ui-components/bs4/v1/forms/broker/_personal_information.html.erb +++ b/app/views/ui-components/bs4/v1/forms/broker/_personal_information.html.erb @@ -29,7 +29,7 @@
- <%= f.date_field :dob, placeholder: l10n('dob_format'), min: 110.years.ago, max: 16.years.ago, required: true, onblur: 'validDob(this)' %> + <%= f.date_field :dob, placeholder: l10n('dob_format'), min: 110.years.ago, max: 16.years.ago.beginning_of_month, required: true, onblur: 'validDob(this)' %>
<%= l10n("invalid_dob") %>
diff --git a/app/views/ui-components/bs4/v1/forms/broker/_staff_registration.html.erb b/app/views/ui-components/bs4/v1/forms/broker/_staff_registration.html.erb index d9c98f3bcb4..ca190fc00e0 100644 --- a/app/views/ui-components/bs4/v1/forms/broker/_staff_registration.html.erb +++ b/app/views/ui-components/bs4/v1/forms/broker/_staff_registration.html.erb @@ -24,7 +24,7 @@
- <%= f.date_field :dob, placeholder: l10n('dob_format'), min: 110.years.ago, max: 16.years.ago, required: true, class: 'form-control', onblur: 'validDob(this)' %> + <%= f.date_field :dob, placeholder: l10n('dob_format'), min: 110.years.ago, max: 18.years.ago.end_of_month, required: true, class: 'form-control', onblur: 'validDob(this)' %>
<%= l10n("invalid_dob") %>