silverstripe-userforms/templates/UserForm.ss

45 lines
977 B
Scheme
Raw Normal View History

2015-08-06 01:01:21 +02:00
<% include UserFormProgress %>
2015-08-11 01:40:37 +02:00
<form $AttributesHTML>
2015-08-04 07:12:17 +02:00
<% 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>
2015-08-04 07:12:17 +02:00
<% end_if %>
<fieldset>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% if $FormFields%><% loop $FormFields %>
2015-08-10 03:28:06 +02:00
<fieldset class="form-step" data-title="$Title">
<% if $Top.DisplayErrorMessagesAtTop %>
<fieldset class="error-container" aria-hidden="true" style="display: none;">
<div>
<h4></h4>
<ul class="error-list"></ul>
</div>
</fieldset>
<% end_if %>
2015-08-11 01:40:37 +02:00
<% loop $Children %>
$FieldHolder
<% end_loop %>
<% include UserFormStepNav ContainingPage=$Top %>
2015-08-10 05:18:50 +02:00
</fieldset>
<% end_loop %><% end_if %>
2015-08-04 07:12:17 +02:00
<div class="clear"><!-- --></div>
</fieldset>
<% if $Actions %>
<div class="Actions">
<% loop $Actions %>
2015-08-06 01:01:21 +02:00
$Field
2015-08-04 07:12:17 +02:00
<% end_loop %>
</div>
<% end_if %>
</form>