You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.3 KiB
21 lines
1.3 KiB
<%= form_with url: stock_owners_organisation_path(target_organisation_id: @target_organisation.id), method: "delete", local: true do |f| %> |
|
<% if current_user.support? %> |
|
<%= render partial: "organisations/headings", locals: { main: @organisation.name, sub: nil } %> |
|
<%= render SubNavigationComponent.new(items: secondary_items(request.path, @organisation.id)) %> |
|
<h2 class="govuk-visually-hidden">Remove Stock Owner</h2> |
|
<% end %> |
|
<% if current_user.support? %> |
|
<%= govuk_back_link(href: :back) %> |
|
<%= render partial: "organisations/headings", locals: { main: "You are removing ‘#{@target_organisation.name}’ from this organisation's stock owners", sub: nil } %> |
|
<% else %> |
|
<% content_for :before_content do %> |
|
<%= govuk_back_link(href: :back) %> |
|
<% end %> |
|
<%= render partial: "organisations/headings", locals: { main: "You are removing ‘#{@target_organisation.name}’ from your organisation's stock owners", sub: nil } %> |
|
<% end %> |
|
<%= govuk_warning_text text: "You will no longer be able to submit logs for #{@target_organisation.name}" %> |
|
<div class="govuk-button-group"> |
|
<%= f.govuk_submit "Confirm" %> |
|
<%= govuk_button_link_to "Cancel", stock_owners_organisation_path(current_user.organisation), html: { method: :get }, secondary: true %> |
|
</div> |
|
<% end %>
|
|
|