From 247a1a856039ab43d7fbfbe6181472235f05db81 Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Mon, 3 Jul 2023 13:59:24 +0100 Subject: [PATCH] Add a cancel button to add stock owners/managing organisations page (#1741) --- .../add_managing_agent.html.erb | 5 ++++- .../add_stock_owner.html.erb | 5 ++++- .../organisation_relationships_controller_spec.rb | 10 +++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/views/organisation_relationships/add_managing_agent.html.erb b/app/views/organisation_relationships/add_managing_agent.html.erb index 173e845ad..8f53b1eeb 100644 --- a/app/views/organisation_relationships/add_managing_agent.html.erb +++ b/app/views/organisation_relationships/add_managing_agent.html.erb @@ -22,7 +22,10 @@ question: Form::Question.new("", { "answer_options" => answer_options }, nil), f:, } %> - <%= f.govuk_submit "Add" %> +
+ <%= f.govuk_submit "Add" %> + <%= govuk_button_link_to("Cancel", managing_agents_organisation_path(@organisation), secondary: true) %> +
<%= govuk_details(summary_text: "Can't find the managing agent you're looking for?") do %>