silverstripe-framework/templates/forms/CheckboxSetField.ss
Ingo Schommer 6f9d01f621 API FormField->setDescription() visible in default template
Renders into <span class="description"> instead of "title" attribute
2012-12-14 01:58:04 +01:00

13 lines
412 B
Scheme

<ul id="$ID" 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>