mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Add registrar area form errors
This commit is contained in:
parent
f592adcf06
commit
5a542d3c67
1 changed files with 11 additions and 0 deletions
11
app/views/registrar/base/_form_errors.html.erb
Normal file
11
app/views/registrar/base/_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