mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ce2d31b060
This is reverting templates back to pre-3.0 conventions, which were dominated by XHTML templates. HTML5 allows both self-closing and unclosed tags, so opting for self-closing to achieve maximum compatibility.
13 lines
465 B
Scheme
13 lines
465 B
Scheme
<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
|
|
<% 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>
|