silverstripe-framework/templates/forms/CheckboxSetField.ss
Damian Mooyman 2c24d51c0b Revert #3358
2014-08-04 12:13:19 +12:00

13 lines
422 B
Scheme

<ul id="$HolderID" class="$extraClass">
<% if $Options.Count %>
<% loop $Options %>
<li class="$Class">
<input id="$ID" class="checkbox" name="$Name" type="checkbox" value="$Value"<% if $isChecked %> checked="checked"<% end_if %><% if $isDisabled %> disabled="disabled"<% end_if %> />
<label for="$ID">$Title</label>
</li>
<% end_loop %>
<% else %>
<li>No options available</li>
<% end_if %>
</ul>