silverstripe-userforms/templates/UserForm.ss

36 lines
700 B
Scheme
Raw Normal View History

2015-08-06 01:01:21 +02:00
<% include UserFormProgress %>
<form class="userform" $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" style="display: none"></p>
<% end_if %>
<fieldset>
<% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $FormSteps %>
2015-08-06 01:01:21 +02:00
<fieldset class="form-step">
2015-08-04 07:12:17 +02:00
<h2>$Title</h2>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
2015-08-06 01:01:21 +02:00
<% include UserFormStepNav ContainingPage=$Top %>
2015-08-04 07:12:17 +02:00
</fieldset>
<% end_loop %>
<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>