18F/identity-dashboard

View on GitHub
app/views/service_config_wizard/_footer.html.erb

Summary

Maintainability
Test Coverage
<%# expected locals:
  [Method] form such that form is a valid instance of wizard_form
%>
<div class="wizard-footer">
  <% if first_step? %>
    <%= link_to 'Next', next_wizard_path, class: 'usa-button' if not last_step?  %>
  <% else %>
    <%= link_to 'Back', previous_wizard_path, class: 'usa-button usa-button--outline'%>
    <% if last_step? %>
      <%= form.submit last_step_message, class: 'usa-button' %>
      <% if show_cancel? %>
        <%= form.submit 'Cancel', class: 'usa-button usa-button--unstyled' %>
      <% end %>
    <% else %>
      <%= form.submit 'Next', class: 'usa-button'%>
    <% end %>
  <% end %>
</div>