diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 17:41:27 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-03 17:47:28 +0200 |
commit | 1c48f48073e33875650b687ced05a51e0fd7f7d3 (patch) | |
tree | 0426fff05d78335a81c7c2d369e00d29bfbc0028 /views | |
parent | ff7a2f930d58e0cb02ffee76e250a02e6b3c7ce3 (diff) | |
download | norsk-urskog-registrations-1c48f48073e33875650b687ced05a51e0fd7f7d3.tar.gz norsk-urskog-registrations-1c48f48073e33875650b687ced05a51e0fd7f7d3.tar.bz2 norsk-urskog-registrations-1c48f48073e33875650b687ced05a51e0fd7f7d3.zip |
Add route to handle submitted form.
Diffstat (limited to 'views')
-rw-r--r-- | views/index.erb | 2 | ||||
-rw-r--r-- | views/submitted.erb | 40 |
2 files changed, 41 insertions, 1 deletions
diff --git a/views/index.erb b/views/index.erb index 64a7de3..51ec288 100644 --- a/views/index.erb +++ b/views/index.erb @@ -1,7 +1,7 @@ <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> - <form id="registration-form" action="mailto:haraldei@anduin.net"> + <form id="registration-form" action="<%= url('submit') %>" method="POST" > <div id="form-general-info" class="fieldgroup"> <h3>Generell info:</h3> diff --git a/views/submitted.erb b/views/submitted.erb new file mode 100644 index 0000000..9b6837d --- /dev/null +++ b/views/submitted.erb @@ -0,0 +1,40 @@ +<h1>Takk for at du vil være med på Norsk Urskog 2016!</h1> + +<p>Du har registrert følgende opplysninger:</p> + +<p>Band/Artist:</p> +<ul> + <li>Bandnavn: <%= @band.name %></li> + <li>Hjemsted: <%= @band.city %></li> + <li>Webside: <%= @band.website %></li> + <li>Plateselskap: <%= @band.label %></li> + <li>Kort bio: <%= @band.short_bio %></li> +</ul> + +<p>Kontakt:</p> +<ul> + <li>Kontaktperson: <%= @band.contact.name %></li> + <li>Kontaktadresse: <%= @band.contact.addr %></li> + <li>Telefon: <%= @band.contact.phone %></li> + <li>Epost: <%= @band.contact.email %></li> +</ul> + +<p>Medlemmer:</p> +<ul> + <% @band.members.each do |m| %> + <li><%= [m.name, m.instrument, m.age].join(', ') %></li> + <% end %> +</ul> + +<p>Låter:</p> +<ul> + <% @band.songs.each do |s| %> + <li> + <%= s.title %><br> + Spilletid: <%= s.time %><br> + Utøvere: <%= s.performers.split("\n").join(', ') %><br> + Låtskrivere: <%= s.composers.split("\n").join(', ') %><br> + Merknad: <%= s.notes %> + </li> + <% end %> +</ul> |