mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-09 03:01:18 +02:00
15 lines
415 B
Scheme
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>
|