silverstripe-userforms/templates/Includes/UserFormStepNav.ss

27 lines
728 B
Scheme
Raw Normal View History

2015-08-21 01:41:42 +02:00
<nav id="step-navigation" class="step-navigation">
2015-08-17 00:43:51 +02:00
<ul class="step-buttons">
2015-08-21 01:41:42 +02:00
<% 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;">
2015-08-17 00:43:51 +02:00
<button class="step-button-prev">Prev</button>
</li>
2015-08-21 01:41:42 +02:00
<li class="step-button-wrapper" aria-hidden="true" style="display:none;">
2015-08-17 00:43:51 +02:00
<button class="step-button-next">Next</button>
</li>
2015-08-21 01:41:42 +02:00
<% end_if %>
2015-08-17 00:43:51 +02:00
<% if $Actions %>
<li class="step-button-wrapper Actions">
<% loop $Actions %>
$Field
<% end_loop %>
</li>
<% end_if %>
2015-08-21 01:41:42 +02:00
2015-08-17 00:43:51 +02:00
</ul>
</nav>