|
|
@ -63,18 +63,20 @@ |
|
|
|
<%= f.hidden_field :interruption_page_referrer_type, value: @interruption_page_referrer_type %> |
|
|
|
<%= f.hidden_field :interruption_page_referrer_type, value: @interruption_page_referrer_type %> |
|
|
|
|
|
|
|
|
|
|
|
<div class="govuk-button-group"> |
|
|
|
<div class="govuk-button-group"> |
|
|
|
<% if accessed_from_duplicate_logs?(request.query_parameters["referrer"]) %> |
|
|
|
<% if !@page.interruption_screen? %> |
|
|
|
<%= f.govuk_submit "Save changes" %> |
|
|
|
<% if accessed_from_duplicate_logs?(request.query_parameters["referrer"]) %> |
|
|
|
<%= govuk_link_to "Cancel", send("#{@log.class.name.underscore}_duplicate_logs_path", @log, original_log_id: request.query_parameters["original_log_id"]) %> |
|
|
|
<%= f.govuk_submit "Save changes" %> |
|
|
|
<% elsif returning_to_question_page?(@page, request.query_parameters["referrer"]) %> |
|
|
|
<%= govuk_link_to "Cancel", send("#{@log.class.name.underscore}_duplicate_logs_path", @log, original_log_id: request.query_parameters["original_log_id"]) %> |
|
|
|
<%= f.govuk_submit "Save changes" %> |
|
|
|
<% elsif returning_to_question_page?(@page, request.query_parameters["referrer"]) %> |
|
|
|
<%= govuk_link_to "Cancel", send(@log.form.cancel_path(@page, @log), @log) %> |
|
|
|
<%= f.govuk_submit "Save changes" %> |
|
|
|
<% else %> |
|
|
|
<%= govuk_link_to "Cancel", send(@log.form.cancel_path(@page, @log), @log) %> |
|
|
|
<%= f.govuk_submit "Save and continue" %> |
|
|
|
<% else %> |
|
|
|
<%= govuk_link_to( |
|
|
|
<%= f.govuk_submit "Save and continue" %> |
|
|
|
(@page.skip_text || "Skip for now"), |
|
|
|
<%= govuk_link_to( |
|
|
|
(@page.skip_href(@log) || send(@log.form.next_page_redirect_path(@page, @log, current_user), @log)), |
|
|
|
(@page.skip_text || "Skip for now"), |
|
|
|
) %> |
|
|
|
(@page.skip_href(@log) || send(@log.form.next_page_redirect_path(@page, @log, current_user), @log)), |
|
|
|
|
|
|
|
) %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|