silverstripe-framework/templates/SilverStripe/Forms/CheckboxSetField.ss

13 lines
454 B
Scheme
Raw Normal View History

<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 %>
2017-02-11 02:30:48 +01:00
<li><%t CheckboxSetField_ss.NOOPTIONSAVAILABLE 'No options available' %></li>
<% end_if %>
</ul>