From de43bf76102808a33cabf951e0584122ca7828ff Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 26 Oct 2022 12:36:43 +0100 Subject: [PATCH] feat: add banner always --- .../organisation_relationships/housing_providers.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/organisation_relationships/housing_providers.html.erb b/app/views/organisation_relationships/housing_providers.html.erb index 4edf863aa..5f805e8df 100644 --- a/app/views/organisation_relationships/housing_providers.html.erb +++ b/app/views/organisation_relationships/housing_providers.html.erb @@ -1,4 +1,11 @@ <% item_label = format_label(@pagy.count, "housing providers") %> +<%= govuk_notification_banner( + title_text: "Success", + success: true, title_heading_level: 3, + title_id: "swanky-notifications" + ) do |notification_banner| + notification_banner.heading(text: "#{Organisation.find(params["related_organisation_id"].to_i).name} is now one of your housing providers") +end %> <% if current_user.support? %> <%= render partial: "organisations/headings", locals: { main: @organisation.name, sub: nil } %> <%= render SubNavigationComponent.new(items: secondary_items(request.path, @organisation.id)) %> @@ -8,6 +15,7 @@ <%= render partial: "organisations/headings", locals: { main: "Your housing providers", sub: nil } %>

Your organisation can submit logs for its housing providers.

<% end %> + <% if @total_count == 0 %>

This organisation does not currently have any housing providers.

<% end %>