silverstripe-framework/admin/themes/cms-forms/templates/CheckboxSetField.ss

15 lines
415 B
Scheme
Raw Normal View History

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