mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Merge branch 'master' into registry-475
This commit is contained in:
commit
c442e502b0
2 changed files with 11 additions and 92 deletions
11
app/views/application/_form_errors.html.erb
Normal file
11
app/views/application/_form_errors.html.erb
Normal file
|
@ -0,0 +1,11 @@
|
|||
<% if target.errors.any? %>
|
||||
<div class="alert alert-danger">
|
||||
<p><%= pluralize(target.errors.count, 'error') %> prohibited this <%= target.model_name.human.downcase %> from being saved:</p>
|
||||
|
||||
<ul>
|
||||
<% target.errors.full_messages.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue