silverstripe-userforms/templates/UserForm.ss
Damian Mooyman f1c408d3f4 BUG Fix form submission
BUG Fixed display logic
2015-08-13 18:57:23 +12:00

29 lines
583 B
Scheme

<form $AttributesHTML>
<% include UserFormProgress %>
<% include UserFormStepErrors %>
<% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
<% else %>
<p id="{$FormName}_error" class="message $MessageType" aria-hidden="true" style="display: none;"></p>
<% end_if %>
<fieldset>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>
<% if $Actions %>
<div class="Actions">
<% loop $Actions %>
$Field
<% end_loop %>
</div>
<% end_if %>
</form>