summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-30 14:44:46 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-10-30 14:44:46 +0100
commitaee781f31e34c71447e74e26375d2bc819aceb79 (patch)
tree720cd9750beddcf71de904e12c6c5a0eb1ed3dd4 /views
parent0863fd869b6ef23501e5c67249f3be661af80e07 (diff)
downloadnorsk-urskog-registrations-aee781f31e34c71447e74e26375d2bc819aceb79.tar.gz
norsk-urskog-registrations-aee781f31e34c71447e74e26375d2bc819aceb79.tar.bz2
norsk-urskog-registrations-aee781f31e34c71447e74e26375d2bc819aceb79.zip
Make the form look a bit nicer again.
Made the song fields align under each other again.
Diffstat (limited to 'views')
-rw-r--r--views/song.erb51
1 files changed, 25 insertions, 26 deletions
diff --git a/views/song.erb b/views/song.erb
index 5dd023a..b97ae37 100644
--- a/views/song.erb
+++ b/views/song.erb
@@ -1,31 +1,30 @@
<div class="song-info" id="song-<%= song_number %>-info">
- <label><%= song_number %></label>
- <span class="field text required">
- <label for="band-song-<%= song_number %>-title">Tittel:</label>
- <input type="text" id="band-song-<%= song_number %>-title"
- name="band[songs][<%= song_number %>][title]"
- value="<%= song.title %>">
- </span>
- <span class="field text optional">
- <label for="band-song-<%= song_number %>-time">Lengde:</label>
- <input type="text" pattern="[0-9]{1,2}:[0-9]{2}"
- title="Spilletid i min:sek (mm:ss)"
- id="band-song-<%= song_number %>-time"
- name="band[songs][<%= song_number %>][time]"
- value="<%= song.time %>"
- size="6">
- </span>
- <span class="field text optional">
- <label for="band-song-<%= song_number %>-isrc">ISRC-kode:</label>
- <input type="text"
- title="Dersom låten har vært utgitt før har den en ISRC-kode. Om du vet den så oppgi den her."
- id="band-song-<%= song_number %>-isrc"
- name="band[songs][<%= song_number %>][isrc]"
- value="<%= song.isrc %>"
- size="11">
- </span>
- <input type="button" id="delete-song-<%= song_number %>" class="delete-song" value="X">
+ <label>Låt nr. <%= song_number %></label>
<div class="song-details">
+ <div class="field text required">
+ <label for="band-song-<%= song_number %>-title">Låttittel:</label>
+ <input type="text" id="band-song-<%= song_number %>-title"
+ name="band[songs][<%= song_number %>][title]"
+ value="<%= song.title %>">
+ </div>
+ <div class="field text optional">
+ <label for="band-song-<%= song_number %>-time">Lengde:</label>
+ <input type="text" pattern="[0-9]{1,2}:[0-9]{2}"
+ title="Spilletid i min:sek (mm:ss)"
+ id="band-song-<%= song_number %>-time"
+ name="band[songs][<%= song_number %>][time]"
+ value="<%= song.time %>"
+ size="6">
+ </div>
+ <div class="field text optional">
+ <label for="band-song-<%= song_number %>-isrc">ISRC-kode:</label>
+ <input type="text"
+ title="Dersom låten har vært utgitt før har den en ISRC-kode. Om du vet den så oppgi den her."
+ id="band-song-<%= song_number %>-isrc"
+ name="band[songs][<%= song_number %>][isrc]"
+ value="<%= song.isrc %>"
+ size="11">
+ </div>
<div class="field textarea required">
<label for="band-song-<%= song_number %>-performers">Utøvere:</label>
<textarea cols="40" rows="5" id="band-song-<%= song_number %>-performers"