summaryrefslogtreecommitdiffstats
path: root/views/layout.erb
blob: 84d3437fa4524c47345b9c8d3218290559a7e0ed (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') %>" media="screen and (min-width: 800px)">
    <link rel="stylesheet" type="text/css" href="<%= url('/mobile-styles.css') %>" media="screen and (max-width: 800px)">
    <script src="<%= url('/regform.js') %>"></script>
    <meta charset="UTF-8">
    <title>Påmeldingsskjema - Norsk Urskog Metal Sampler</title>
  </head>
  <body>
    <% if @band && @band.has_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>