summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/index.erb2
-rw-r--r--views/submitted.erb40
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>