mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
c9b6e9bac0
API Update behaviour of form fields to use standard template lookup mechanism API Support custom "type" parameter to template lookup
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>
|