checkbox list: switch to our checkboxes + label style

This commit is contained in:
Felix Niklas 2016-03-14 15:11:23 +01:00
parent 4b71a8caac
commit 7fcb2699b8

View file

@ -1,5 +1,10 @@
<div class="<%= @attribute.class %> checkbox"> <div class="<%= @attribute.class %> checkbox">
<% for row in @attribute.options: %> <% for row in @attribute.options: %>
<label><input type="checkbox" value="<%= row.value %>" name="<%= @attribute.name %>" <%= row.checked %>/> <%= row.name %> <% if row.note: %>- <%= row.note %><% end %></label> <label class="inline-label checkbox-replacement">
<input type="checkbox" value="<%= row.value %>" name="<%= @attribute.name %>" <%= row.checked %>/>
<%- @Icon('checkbox', 'icon-unchecked') %>
<%- @Icon('checkbox-checked', 'icon-checked') %>
<span class="label-text"><%= row.name %> <% if row.note: %>- <span class="help-text"><%= row.note %></span><% end %></span>
</label>
<% end %> <% end %>
</div> </div>