silverstripe-framework/templates/forms/OptionsetField.ss
Ingo Schommer ce2d31b060 BUG Consistently self-closing form field tags (#7557)
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.
2012-08-10 10:27:33 +02:00

9 lines
349 B
Scheme

<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
<% loop Options %>
<li class="$Class">
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if isChecked %> checked<% end_if %><% if isDisabled %> disabled<% end_if %> />
<label for="$ID">$Title</label>
</li>
<% end_loop %>
</ul>