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

22 lines
591 B
Scheme

<% if $Form.Steps.Count > 1 %>
<nav class="step-navigation" aria-hidden="true" style="display:none;">
<ul class="step-buttons">
<% if $StepNumber > 1 %>
<li class="step-button-wrapper">
<button class="step-button-prev">Prev</button>
</li>
<% end_if %>
<% if $StepNumber < $Form.Steps.Count %>
<li class="step-button-wrapper">
<button class="step-button-next">Next</button>
</li>
<% else_if $Form.Actions %><% loop $Form.Actions %>
<li class="step-button-wrapper">
$Field
</li>
<% end_loop %><% end_if %>
</ul>
</nav>
<% end_if %>