summaryrefslogblamecommitdiffstats
path: root/views/member.erb
blob: dcdfb85fd9501006479e8918dce9133dd4ff9e5c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                          

                                                                        

                                                               

                                      

                                                                                    

                                                                     

                                       
                                                                        
                                                                    
                                                              
                                            





                                                           
      
<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 %>">
    </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 %>">
    </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 if member.age > 0 %>">
    </span>
    <input type="button"
           name="delete"
           data-member="<%= member_number %>"
           class="delete-member-button" value="X">
</div>