diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-30 14:22:26 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-30 14:22:26 +0100 |
commit | 90f4ed34c62f5d90b536cac97265d323d0c1c136 (patch) | |
tree | b9c6f3c9494d21804b1cdab73daf5b57286a3ff7 /views | |
parent | f67121a270a345f718dd8e146b13a0fe84da1885 (diff) | |
download | norsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.tar.gz norsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.tar.bz2 norsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.zip |
Simplify form: Just use a textarea for members.
Diffstat (limited to 'views')
-rw-r--r-- | views/index.erb | 20 | ||||
-rw-r--r-- | views/submitted.erb | 8 |
2 files changed, 7 insertions, 21 deletions
diff --git a/views/index.erb b/views/index.erb index 52823db..ab3a762 100644 --- a/views/index.erb +++ b/views/index.erb @@ -27,7 +27,12 @@ <div class="field text required"> <label for="band_shortbio">Kort bio:</label> - <textarea cols="40" rows="5" id="band_shortbio" name="band[shortbio]"><%= @band.short_bio %></textarea> + <textarea id="band_shortbio" name="band[shortbio]"><%= @band.short_bio %></textarea> + </div> + + <div class="field textarea"> + <label for="band_members">Medlemmer:</label> + <textarea id="band_members" name="band[members]"><%= @band.members %></textarea> </div> </div> @@ -54,19 +59,6 @@ </div> </div> - <div id="form-members" class="fieldgroup"> - <h3>Medlemmer</h3> - <p>Klikk på knappen under for å legge til medlemmene som er med i bandet. Dette er kun til - informasjon for websider, promomateriale og lignende. Har bandmedlemene pseudonymer de - foretrekker å bruke, så kan du bruke dem her.</p> - - <input type="button" name="add_member" value="Legg til medlem" id="add-member-button"> - - <% @band.members.each do |m| %> - <%= erb :member, layout: false, locals: { member_number: 1, member: m } %> - <% end %> - </div> - <div id="form-songs" class="fieldgroup"> <h3>Låter</h3> <p>Klikk på knappen under for å legge til låten(e) dere vil ha med på samle-cden. Du kan oppgi diff --git a/views/submitted.erb b/views/submitted.erb index 7f2950f..d085b82 100644 --- a/views/submitted.erb +++ b/views/submitted.erb @@ -9,6 +9,7 @@ <li>Webside: <%= @band.website %></li> <li>Plateselskap: <%= @band.label %></li> <li>Kort bio: <%= @band.short_bio %></li> + <li>Medlemmer: <%= @band.members %></li> </ul> <p>Kontakt:</p> @@ -19,13 +20,6 @@ <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| %> |