mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ca87b8b794
Fixes: http://open.silverstripe.org/ticket/4431. Changes Form and Form Field classes to make use of Convert::raw2htmlid() which follows http://www.w3.org/TR/REC-html40/types.html#type-cdata. Introduces a FormTemplateHelper class to assist in these sort of updates in the future.
9 lines
443 B
Scheme
9 lines
443 B
Scheme
<div id="$HolderID" class="field<% if extraClass %> $extraClass<% end_if %>">
|
|
<% if Title %><label class="left" for="$ID">$Title</label><% end_if %>
|
|
<div class="middleColumn">
|
|
$Field
|
|
</div>
|
|
<% if RightTitle %><label class="right" for="$ID">$RightTitle</label><% end_if %>
|
|
<% if Message %><span class="message $MessageType">$Message</span><% end_if %>
|
|
<% if Description %><span class="description">$Description</span><% end_if %>
|
|
</div> |