fix ui issue to display bug (#12365)

This commit is contained in:
narender2031 2021-01-23 02:17:19 +05:30 committed by GitHub
parent fa451bff64
commit 06a6191424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,14 @@
<% if resource.errors.any? %>
<div id="error_explanation" class="crayons-notice crayons-notice--danger registration__error-notice">
<h2>
<%= I18n.t("errors.messages.not_saved",
count: resource.errors.count,
resource: resource.class.model_name.human.downcase) %>
</h2>
<ul>
<% resource.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>