summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-28 21:53:08 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-10-28 21:53:08 +0100
commitf66bfda4c18ed3fd77981d37be911c38f496d617 (patch)
tree9ff89c95b186b4d64f95c5d8c211a2de04b273b4
parent57af2ee2e51b614ac6e2fa81b1075a55d3c0c252 (diff)
downloadnorsk-urskog-registrations-f66bfda4c18ed3fd77981d37be911c38f496d617.tar.gz
norsk-urskog-registrations-f66bfda4c18ed3fd77981d37be911c38f496d617.tar.bz2
norsk-urskog-registrations-f66bfda4c18ed3fd77981d37be911c38f496d617.zip
Horizontal layout for members
-rw-r--r--views/member.erb26
1 files changed, 13 insertions, 13 deletions
diff --git a/views/member.erb b/views/member.erb
index f618f89..dcdfb85 100644
--- a/views/member.erb
+++ b/views/member.erb
@@ -1,26 +1,26 @@
-<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">
+<div class="member-info" id="member-<%= member_number %>">
+ <label><%= member_number %>:</label>
+ <span 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]"
value="<%= member.name %>">
- </div>
- <div class="field text optional">
+ </span>
+ <span 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]"
value="<%= member.instrument %>">
- </div>
- <div class="field class optional">
+ </span>
+ <span class="field class optional">
<label for="band-member-<%= member_number %>-age">Alder:</label>
<input type="text" id="band-member-<%= member_number %>-age"
name="band[members][<%= member_number %>][age]"
size="3" pattern="[0-9]{1,2}"
- value="<%= member.age %>">
- </div>
+ value="<%= member.age if member.age > 0 %>">
+ </span>
+ <input type="button"
+ name="delete"
+ data-member="<%= member_number %>"
+ class="delete-member-button" value="X">
</div>