From 90bc2fd8b075103db76b2304e92fa85107fa33a4 Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Mon, 26 Apr 2021 10:42:53 -0400 Subject: [PATCH] Adding rendering of lease related error messages Prior to this commit, the `form_visibility_error` partial did not include the errors for the `:lease_expiration_date` nor the `:visibility_after_lease`. Per convention of Hyrax, we place the error messages on the form and not in close DOM proximity to the HTML field in which we encountered the error. This relates to #4845 --- app/views/hyrax/base/_form_visibility_error.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/hyrax/base/_form_visibility_error.html.erb b/app/views/hyrax/base/_form_visibility_error.html.erb index 8fe6d98cd9..b8b8dd162c 100644 --- a/app/views/hyrax/base/_form_visibility_error.html.erb +++ b/app/views/hyrax/base/_form_visibility_error.html.erb @@ -1,3 +1,5 @@ <%= f.full_error(:visibility) %> <%= f.full_error(:embargo_release_date) %> <%= f.full_error(:visibility_after_embargo) %> +<%= f.full_error(:lease_expiration_date) %> +<%= f.full_error(:visibility_after_lease) %>