silverstripe-userforms/templates/SilverStripe/UserForms/Form/UserForm.ss

30 lines
838 B
Scheme
Raw Normal View History

2015-08-11 01:40:37 +02:00
<form $AttributesHTML>
<% include SilverStripe\\UserForms\\Form\\UserFormProgress %>
<% include SilverStripe\\UserForms\\Form\\UserFormStepErrors %>
2015-08-04 07:12:17 +02:00
<% if $Message %>
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
2015-08-04 07:12:17 +02:00
<% else %>
<p id="{$FormName}_error" class="message $MessageType" aria-hidden="true" style="display: none;"></p>
<% end_if %>
<% if $Legend %>
<fieldset>
<legend>$Legend</legend>
<% include SilverStripe\\UserForms\\Form\\UserFormFields %>
</fieldset>
<% else %>
<div class="userform-fields">
<% include SilverStripe\\UserForms\\Form\\UserFormFields %>
</div>
<% end_if %>
2015-08-04 07:12:17 +02:00
<% if $Steps.Count > 1 %>
<% include SilverStripe\\UserForms\\Form\\UserFormStepNav %>
<% else %>
<% include SilverStripe\\UserForms\\Form\\UserFormActionNav %>
<% end_if %>
2015-08-04 07:12:17 +02:00
</form>