diff options
Diffstat (limited to 'views/layout.erb')
-rw-r--r-- | views/layout.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/layout.erb b/views/layout.erb index a6f8dd8..efda293 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -8,6 +8,17 @@ <title>Norsk Urskog 2015 - Påmeldingsskjema for band</title> </head> <body> + <% if @errors %> + <div class="error"> + <h1 class="error-heading">Det er feil i skjemaet!</h1> + <p>Vennligst se over følgende og prøv igjen:</p> + <ul> + <% @errors.each do |err| %> + <li><%=h err %></li> + <% end %> + </ul> + </div> + <% end %> <%= yield %> </body> </html> |