summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/index.erb12
-rw-r--r--views/layout.erb13
2 files changed, 13 insertions, 12 deletions
diff --git a/views/index.erb b/views/index.erb
index 1aeb2e5..64a7de3 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -1,13 +1,3 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" type="text/css" href="registration-form.css">
- <script src="https://code.jquery.com/jquery-2.1.1.js"></script>
- <script src="./registration-form.js"></script>
- <meta charset="UTF-8">
- <title>Norsk Urskog 2015 - Påmeldingsskjema for band</title>
- </head>
- <body>
<h1>Norsk Urskog 2015</h1>
<h2>Påmeldingsskjema for Band</h2>
<p>Felter merket med <span class="required"></span> er obligatoriske og må fylles ut.</p>
@@ -90,5 +80,3 @@
<input type="button" value="Nullstill skjema">
</div>
</form>
- </body>
-</html>
diff --git a/views/layout.erb b/views/layout.erb
new file mode 100644
index 0000000..a6f8dd8
--- /dev/null
+++ b/views/layout.erb
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="stylesheet" type="text/css" href="<%= url('/styles.css') %>">
+ <script src="https://code.jquery.com/jquery-2.1.1.js"></script>
+ <script src="<%= url('/regform.js') %>"></script>
+ <meta charset="UTF-8">
+ <title>Norsk Urskog 2015 - Påmeldingsskjema for band</title>
+ </head>
+ <body>
+ <%= yield %>
+ </body>
+</html>