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

View File

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