summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/member.erb23
-rw-r--r--views/song.erb48
2 files changed, 71 insertions, 0 deletions
diff --git a/views/member.erb b/views/member.erb
new file mode 100644
index 0000000..1e6e78e
--- /dev/null
+++ b/views/member.erb
@@ -0,0 +1,23 @@
+<div class="member-info">
+ <h4>
+ Medlem nr. <%= member_number %>
+ <input type="button" name="delete" data-member="<%= member_number %>"
+ class="delete-member-button" value="X">
+ </h4>
+ <div class="field text required">
+ <label for="band-member-<%= member_number %>-name">Navn:</label>
+ <input type="text" id="band-member-<%= member_number %>-name"
+ name="band[members][<%= member_number %>][name]">
+ </div>
+ <div class="field text optional">
+ <label for="band-member-<%= member_number %>-instrument">Instrument:</label>
+ <input type="text" id="band-member-<%= member_number %>-instrument"
+ name="band[members][<%= member_number %>][instrument]">
+ </div>
+ <div class="field class optional">
+ <label for="band-member-<%= member_number %>-age">Alder:</label>
+ <input type="text" for="band-member-<%= member_number %>-age"
+ name="band[members][<%= member_number %>][age]"
+ size="3" pattern="[0-9]{1,2}">
+ </div>
+</div>
diff --git a/views/song.erb b/views/song.erb
new file mode 100644
index 0000000..a217d97
--- /dev/null
+++ b/views/song.erb
@@ -0,0 +1,48 @@
+<div class="song-info" id="song-<%= song_number %>-info">
+ <h4>
+ Låt nr <%= song_number %>
+ <input type="button" id="delete-song-<%= song_number %>" class="delete-song" value="X">
+ </h4>
+ <div 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]">
+ </div>
+ <div class="field text optional">
+ <label for="band-song-<%= song_number %>-time">Lengde:</label>
+ <input type="text" pattern="[0-9]{2}:[0-9]{2}"
+ title="Spilletid i min:sek (mm:ss)"
+ id="band-song-<%= song_number %>-time"
+ name="band[songs][<%= song_number %>][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]"
+ 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"
+ name="band[songs][<%= song_number %>][performers]"
+ title="Fullt navn (ingen pseudonymer) på alle som er med på denne innspillingen.">
+ </textarea>
+ </div>
+ <div class="field textarea required">
+ <label for="band-song-<%= song_number %>-composers">Opphavsmenn:</label>
+ <textarea cols="40" rows="5" id="band-song-<%= song_number %>-composers"
+ name="band[songs][<%= song_number %>][composers]"
+ title="Fullt navn (ingen pseudonymer) på alle som har vært med på å skrive denne låten.">
+ </textarea>
+ </div>
+ <div class="field textarea optional">
+ <label for="band-song-<%= song_number %>-notes">Andre merknader:</label>
+ <textarea cols="40" rows="5" id="band-song-<%= song_number %>-notes"
+ name="band[songs][<%= song_number %>][notes]"
+ title="Evt andre ting vi burde vite.">
+ </textarea>
+ </div>
+</div>