mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX fieldset without a legend shouldn't be a fieldset
This commit is contained in:
parent
17fe85b774
commit
c98fa0bab4
@ -9,13 +9,16 @@
|
|||||||
<p id="{$FormName}_error" class="message $MessageType" aria-hidden="true" style="display: none;"></p>
|
<p id="{$FormName}_error" class="message $MessageType" aria-hidden="true" style="display: none;"></p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<fieldset>
|
<% if $Legend %>
|
||||||
<% if $Legend %><legend>$Legend</legend><% end_if %>
|
<fieldset>
|
||||||
<% loop $Fields %>
|
<legend>$Legend</legend>
|
||||||
$FieldHolder
|
<% include UserFormFields %>
|
||||||
<% end_loop %>
|
</fieldset>
|
||||||
<div class="clear"><!-- --></div>
|
<% else %>
|
||||||
</fieldset>
|
<div class="userform-fields">
|
||||||
|
<% include UserFormFields %>
|
||||||
|
</div>
|
||||||
|
<% end_if %>
|
||||||
|
|
||||||
<% if $Steps.Count > 1 %>
|
<% if $Steps.Count > 1 %>
|
||||||
<% include UserFormStepNav %>
|
<% include UserFormStepNav %>
|
||||||
|
5
templates/Includes/UserFormFields.ss
Normal file
5
templates/Includes/UserFormFields.ss
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<% loop $Fields %>
|
||||||
|
$FieldHolder
|
||||||
|
<% end_loop %>
|
||||||
|
<div class="clear"><!-- --></div>
|
||||||
|
|
@ -1,8 +1,6 @@
|
|||||||
<% if $Steps.Count > 1 %>
|
<% if $Steps.Count > 1 %>
|
||||||
<fieldset class="error-container form-wide-errors" aria-hidden="true" style="display: none;">
|
<div class="error-container form-wide-errors" aria-hidden="true" style="display: none;">
|
||||||
<div>
|
|
||||||
<h4></h4>
|
<h4></h4>
|
||||||
<ul class="error-list"></ul>
|
<ul class="error-list"></ul>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<fieldset id="$Name" class="form-step $extraClass" data-title="$Title">
|
<div id="$Name" class="form-step $extraClass" data-title="$Title">
|
||||||
<% if $Form.DisplayErrorMessagesAtTop %>
|
<% if $Form.DisplayErrorMessagesAtTop %>
|
||||||
<fieldset class="error-container" aria-hidden="true" style="display: none;">
|
<div class="error-container" aria-hidden="true" style="display: none;">
|
||||||
<div>
|
<div>
|
||||||
<h4></h4>
|
<h4></h4>
|
||||||
<ul class="error-list"></ul>
|
<ul class="error-list"></ul>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% loop $Children %>
|
<% loop $Children %>
|
||||||
$FieldHolder
|
$FieldHolder
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
|
|
||||||
</fieldset>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user