Skip to content

Commit

Permalink
Adding rendering of lease related error messages
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jeremyf authored and tamsin johnson committed May 4, 2021
1 parent 840a08f commit 625a1a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/hyrax/base/_form_visibility_error.html.erb
Original file line number Diff line number Diff line change
@@ -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) %>

0 comments on commit 625a1a9

Please sign in to comment.