2015-08-11 11:40:37 +12:00
|
|
|
<form $AttributesHTML>
|
2017-07-13 15:06:21 +12:00
|
|
|
|
2017-08-14 12:29:57 +12:00
|
|
|
<% include SilverStripe\\UserForms\\Form\\UserFormProgress %>
|
|
|
|
<% include SilverStripe\\UserForms\\Form\\UserFormStepErrors %>
|
2015-08-04 17:12:17 +12:00
|
|
|
|
|
|
|
<% if $Message %>
|
2015-08-13 11:31:37 +12:00
|
|
|
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
|
2015-08-04 17:12:17 +12:00
|
|
|
<% else %>
|
2015-08-13 11:31:37 +12:00
|
|
|
<p id="{$FormName}_error" class="message $MessageType" aria-hidden="true" style="display: none;"></p>
|
2015-08-13 11:55:39 +12:00
|
|
|
<% end_if %>
|
|
|
|
|
2017-07-13 15:06:21 +12:00
|
|
|
<% if $Legend %>
|
|
|
|
<fieldset>
|
|
|
|
<legend>$Legend</legend>
|
2017-08-22 12:15:22 +12:00
|
|
|
<% include SilverStripe\\UserForms\\Form\\UserFormFields %>
|
2017-07-13 15:06:21 +12:00
|
|
|
</fieldset>
|
|
|
|
<% else %>
|
|
|
|
<div class="userform-fields">
|
2017-08-22 12:15:22 +12:00
|
|
|
<% include SilverStripe\\UserForms\\Form\\UserFormFields %>
|
2017-07-13 15:06:21 +12:00
|
|
|
</div>
|
|
|
|
<% end_if %>
|
2015-08-04 17:12:17 +12:00
|
|
|
|
2015-10-22 17:57:51 +13:00
|
|
|
<% if $Steps.Count > 1 %>
|
2017-08-14 12:29:57 +12:00
|
|
|
<% include SilverStripe\\UserForms\\Form\\UserFormStepNav %>
|
2015-10-22 17:57:51 +13:00
|
|
|
<% else %>
|
2017-08-14 12:29:57 +12:00
|
|
|
<% include SilverStripe\\UserForms\\Form\\UserFormActionNav %>
|
2015-10-22 17:57:51 +13:00
|
|
|
<% end_if %>
|
2015-08-04 17:12:17 +12:00
|
|
|
|
|
|
|
</form>
|