diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 12:56:29 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 12:56:29 +0200 |
commit | ff7a2f930d58e0cb02ffee76e250a02e6b3c7ce3 (patch) | |
tree | 46cccc959715d5e4c2bc1f24ea597f24edb14bda /views | |
parent | 08e71721514a8fad599832c4846b1cfb45b0f12c (diff) | |
download | norsk-urskog-registrations-ff7a2f930d58e0cb02ffee76e250a02e6b3c7ce3.tar.gz norsk-urskog-registrations-ff7a2f930d58e0cb02ffee76e250a02e6b3c7ce3.tar.bz2 norsk-urskog-registrations-ff7a2f930d58e0cb02ffee76e250a02e6b3c7ce3.zip |
Separate out page header and boiler plate into layout.
Diffstat (limited to 'views')
-rw-r--r-- | views/index.erb | 12 | ||||
-rw-r--r-- | views/layout.erb | 13 |
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> |