BUGFIX Added <legend> element immediately after <fieldset> for SearchForm and Form templates. This is required to validate these templates as W3C compliant

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67417 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-12-04 03:07:11 +00:00 committed by Sam Minnee
parent c7c06951bd
commit 5f7f762f7a
2 changed files with 9 additions and 7 deletions

View File

@ -7,6 +7,7 @@
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
<% end_if %>
<fieldset>
<legend></legend>
<% control Fields %>
$FieldHolder
<% end_control %>
@ -15,7 +16,7 @@
<% if Actions %>
<div class="Actions">
<% control Actions %>$Field<% end_control %>
<% control Actions %>$Field<% end_control %>
</div>
<% end_if %>
<% if IncludeFormTag %>

View File

@ -1,10 +1,11 @@
<form $FormAttributes>
<fieldset>
<% control Fields %>
$FieldHolder
<% end_control %>
<% control Actions %>
$Field
<% end_control %>
<legend></legend>
<% control Fields %>
$FieldHolder
<% end_control %>
<% control Actions %>
$Field
<% end_control %>
</fieldset>
</form>