mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR: fix for styling for one or more buttons that don't need the list styling for the step navigation. Will add the action nav which just shows the buttons
MINOR: fix for styling for one or more buttons that don't need the list styling for the step navigation. Will add the action nav which just shows the buttons MINOR: fix for styling for one or more buttons that don't need the list styling for the step navigation. Will add the action nav which just shows the buttons
This commit is contained in:
parent
881fa401cb
commit
22a65dc262
7
templates/Includes/UserFormActionNav.ss
Normal file
7
templates/Includes/UserFormActionNav.ss
Normal file
@ -0,0 +1,7 @@
|
||||
<% if $Actions %>
|
||||
<nav class="Actions">
|
||||
<% loop $Actions %>
|
||||
$Field
|
||||
<% end_loop %>
|
||||
</nav>
|
||||
<% end_if %>
|
@ -1,7 +1,5 @@
|
||||
<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.
|
||||
@ -12,7 +10,6 @@
|
||||
<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">
|
||||
|
@ -17,6 +17,10 @@
|
||||
<div class="clear"><!-- --></div>
|
||||
</fieldset>
|
||||
|
||||
<% include UserFormStepNav %>
|
||||
<% if $Steps.Count > 1 %>
|
||||
<% include UserFormStepNav %>
|
||||
<% else %>
|
||||
<% include UserFormActionNav %>
|
||||
<% end_if %>
|
||||
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user