From 5a542d3c67093f79fdd7af0c9393b49eacb10ffa Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 13 Apr 2017 18:42:50 +0300 Subject: [PATCH] Add registrar area form errors --- app/views/registrar/base/_form_errors.html.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/views/registrar/base/_form_errors.html.erb diff --git a/app/views/registrar/base/_form_errors.html.erb b/app/views/registrar/base/_form_errors.html.erb new file mode 100644 index 000000000..0f898c81d --- /dev/null +++ b/app/views/registrar/base/_form_errors.html.erb @@ -0,0 +1,11 @@ +<% if target.errors.any? %> +
+

<%= pluralize(target.errors.count, 'error') %> prohibited this <%= target.model_name.human.downcase %> from being saved:

+ + +
+<% end %>