aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared
diff options
context:
space:
mode:
authorBruno Perles2016-01-07 14:51:03 +0100
committerBruno Perles2016-01-07 14:51:03 +0100
commit48b7e696ee4c273335889be3f68ad8f0a61ba8e9 (patch)
treebb00dfc30f818b674d59ed411ec532af9a24719a /app/views/shared
parentf46b02367430be136e8e91cb138be4f84eed24d9 (diff)
downloadchouette-core-48b7e696ee4c273335889be3f68ad8f0a61ba8e9.tar.bz2
Update for frequencies
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_form_messages.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/shared/_form_messages.html.erb b/app/views/shared/_form_messages.html.erb
new file mode 100644
index 000000000..6eca2e69f
--- /dev/null
+++ b/app/views/shared/_form_messages.html.erb
@@ -0,0 +1,7 @@
+<% if errors.any? %>
+ <% errors.full_messages.each do |message| %>
+ <div class="alert alert-danger" role="alert">
+ <%= message %>
+ </div>
+ <% end %>
+<% end %>