2024-01-14 22:28:10 -06:00
|
|
|
<% if resource.errors.any? %>
|
2024-01-19 17:19:36 -06:00
|
|
|
<div id="error_explanation" class="alert alert-danger" role="alert" data-turbo-cache="false">
|
|
|
|
<h4 class="alert-heading">
|
2024-01-14 22:28:10 -06:00
|
|
|
<%= I18n.t("errors.messages.not_saved",
|
|
|
|
count: resource.errors.count,
|
|
|
|
resource: resource.class.model_name.human.downcase)
|
|
|
|
%>
|
2024-01-19 17:19:36 -06:00
|
|
|
</h4>
|
2024-01-14 22:28:10 -06:00
|
|
|
<ul>
|
|
|
|
<% resource.errors.full_messages.each do |message| %>
|
|
|
|
<li><%= message %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|