silverstripe-framework/templates/SilverStripe/Forms/CheckboxSetField.ss
2017-02-11 02:30:48 +01:00

13 lines
454 B
Scheme

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