silverstripe-userforms/templates/Includes/UserFormStepNav.ss
2015-08-24 10:38:02 +12:00

27 lines
728 B
Scheme

<nav id="step-navigation" class="step-navigation">
<ul class="step-buttons">
<% if $Steps.Count > 1 %>
<%--
If JavaScript is disabled multi-step forms are displayed as a single page
so the 'prev' and 'next' button are not used. These buttons are made visible via JavaScript.
--%>
<li class="step-button-wrapper" aria-hidden="true" style="display:none;">
<button class="step-button-prev">Prev</button>
</li>
<li class="step-button-wrapper" aria-hidden="true" style="display:none;">
<button class="step-button-next">Next</button>
</li>
<% end_if %>
<% if $Actions %>
<li class="step-button-wrapper Actions">
<% loop $Actions %>
$Field
<% end_loop %>
</li>
<% end_if %>
</ul>
</nav>