mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
12 lines
427 B
Scheme
12 lines
427 B
Scheme
|
<% if $Options.Count %>
|
||
|
<% loop $Options %>
|
||
|
<div 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>
|
||
|
</div>
|
||
|
<% end_loop %>
|
||
|
<% else %>
|
||
|
<p>No options available</p>
|
||
|
<% end_if %>
|