Browse Source

For in progress logs the "Skip for now" button is replaced with a "Cancel" button which redirects to the setup page

pull/708/head
Ted 3 years ago
parent
commit
80358a21da
  1. 7
      app/views/form/page.html.erb

7
app/views/form/page.html.erb

@ -42,7 +42,12 @@
<% next_page = @case_log.form.next_page(@page, @case_log, current_user) %>
<% if !@page.id.include?("value_check") %>
<%= f.govuk_submit "Save and continue" %>
<%= govuk_link_to "Skip for now", "/logs/#{@case_log.id}/#{next_page.dasherize}", secondary: true %>
<% if @case_log.status == "in_progress" %>
<%= govuk_link_to "Cancel", "/logs/#{@case_log.id}/setup/check-answers", secondary: true %>
<% else %>
<%= govuk_link_to "Skip for now", "/logs/#{@case_log.id}/#{next_page.dasherize}", secondary: true %>
<% end %>
<% end %>
</div>
</div>

Loading…
Cancel
Save