summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-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>