From 631cd5ce938615f5ba33f50958a741020cc36e14 Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 1 Mar 2024 15:52:21 +0000 Subject: [PATCH] Move delete button into the button group --- app/views/locations/check_answers.html.erb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/locations/check_answers.html.erb b/app/views/locations/check_answers.html.erb index 3f31841a8..7a3a72e13 100644 --- a/app/views/locations/check_answers.html.erb +++ b/app/views/locations/check_answers.html.erb @@ -42,10 +42,9 @@ <% if LocationPolicy.new(current_user, @location).create? %>
<%= govuk_button_to "Save and return to locations", scheme_location_confirm_path(@scheme, @location, route: params[:route]), method: :patch %> + <% if LocationPolicy.new(current_user, @location).delete? %> + <%= delete_location_link(@location) %> + <% end %> <%= govuk_button_link_to "Cancel", scheme_locations_path(@scheme), secondary: true %>
<% end %> - -<% if LocationPolicy.new(current_user, @location).delete? %> - <%= delete_location_link(@location) %> -<% end %>