summaryrefslogtreecommitdiffstats
path: root/views/layout.erb
blob: 8dd0c318bd41eac02946880a9ca4487f01e485e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="<%= url('/styles.css') %>">
    <script src="https://code.jquery.com/jquery-2.1.4.js"></script>
    <script src="<%= url('/regform.js') %>"></script>
    <meta charset="UTF-8">
    <title>Norsk Urskog 2015 - Påmeldingsskjema for band</title>
  </head>
  <body>
    <% if @band && @band.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>
          <% @band.errors.each do |err| %>
            <li><%= err %></li>
          <% end %>
        </ul>
      </div>
    <% end %>
    <%= yield %>
  </body>
</html>