mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
6352201738
It produces invalid HTML since the "for" attribute doesn't map to any HTML input field. Each individual checkbox or radio button input element has its own <label for>
10 lines
425 B
Scheme
10 lines
425 B
Scheme
<div id="$Name" class="field<% if $extraClass %> $extraClass<% end_if %>">
|
|
<% if $Title %><label class="left">$Title</label><% end_if %>
|
|
<div class="middleColumn">
|
|
$Field
|
|
</div>
|
|
<% if $RightTitle %><label class="right">$RightTitle</label><% end_if %>
|
|
<% if $Message %><span class="message $MessageType">$Message</span><% end_if %>
|
|
<% if $Description %><span class="description">$Description</span><% end_if %>
|
|
</div>
|