<% title = "#{action.humanize} #{@organisation.name}" %> <% content_for :title, title %> <% content_for :before_content do %> <%= govuk_back_link( href: organisation_path(@organisation), ) %> <% end %> <%= form_for(@organisation, as: :organisation, html: { method: :patch }) do |f| %>

<%= @organisation.name %> Are you sure you want to <%= action %> this organisation?

<%= govuk_warning_text text: I18n.t("warnings.organisation.#{action}") %> <% active_value = action != "deactivate" %> <%= f.hidden_field :active, value: active_value %> <%= f.govuk_submit "#{action.capitalize} this organisation" %>

<%= govuk_link_to("Cancel", organisation_path(@organisation)) %>

<% end %>