silverstripe-framework/admin/themes/cms-forms/templates/forms/CheckboxSetField.ss
Damian Mooyman a809e80d01 API Convert CMS forms to bootstrap
NEW Add cms-forms microtheme to cater to bootstrap's needs.

Note that the old SS3 assets section is buggy as a result of this change.
2016-07-25 17:24:26 +12:00

15 lines
415 B
Scheme

<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>