mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
0a79ac3592
Conflicts: templates/forms/CheckboxSetField.ss templates/forms/FormField_holder.ss templates/forms/OptionsetField.ss
13 lines
422 B
Scheme
13 lines
422 B
Scheme
<ul id="$HolderID" class="$extraClass">
|
|
<% if $Options.Count %>
|
|
<% loop $Options %>
|
|
<li class="$Class">
|
|
<input id="$ID" class="checkbox" name="$Name" type="checkbox" value="$Value"<% if $isChecked %> checked="checked"<% end_if %><% if $isDisabled %> disabled="disabled"<% end_if %> />
|
|
<label for="$ID">$Title</label>
|
|
</li>
|
|
<% end_loop %>
|
|
<% else %>
|
|
<li>No options available</li>
|
|
<% end_if %>
|
|
</ul>
|