Browse Source

Address comments

pull/956/head
Jack S 4 years ago
parent
commit
7c58d05ad9
  1. 2
      app/views/organisation_relationships/add_housing_provider.html.erb
  2. 2
      app/views/organisation_relationships/add_managing_agent.html.erb
  3. 14
      app/views/organisation_relationships/managing_agents.html.erb

2
app/views/organisation_relationships/add_housing_provider.html.erb

@ -3,8 +3,6 @@
<%= 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">Add Housing Provider</h2>
<% end %>
<% if current_user.support? %>
<%= govuk_back_link(href: :back) %>
<%= render partial: "organisations/headings", locals: { main: "What is the name of this organisation's housing provider?", sub: nil } %>
<p class="govuk-body">Start typing to search for a housing provider</p>

2
app/views/organisation_relationships/add_managing_agent.html.erb

@ -3,8 +3,6 @@
<%= 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">Add Managing Agent</h2>
<% end %>
<% if current_user.support? %>
<%= govuk_back_link(href: :back) %>
<%= render partial: "organisations/headings", locals: { main: "What is the name of this organisation's managing agent?", sub: nil } %>
<p class="govuk-body">Start typing to search for a managing agent</p>

14
app/views/organisation_relationships/managing_agents.html.erb

@ -7,7 +7,7 @@
success: true, title_heading_level: 3,
title_id: "swanky-notifications"
) do |notification_banner|
notification_banner.heading(text: "#{Organisation.find(params["related_organisation_id"]).name} is now one of your managing agents")
notification_banner.heading(text: "#{Organisation.find(params["related_organisation_id"]).name} is now one of this organisation's managing agents")
end %>
<% end %>
<% end %>
@ -24,18 +24,18 @@
success: true, title_heading_level: 3,
title_id: "swanky-notifications"
) do |notification_banner|
notification_banner.heading(text: "#{Organisation.find(params["related_organisation_id"]).name} is now one of your managing agents")
notification_banner.heading(text: "#{Organisation.find(params["related_organisation_id"]).name} is now one of this organisation's managing agents")
end %>
<% end %>
<p class="govuk-body">A managing agent can submit logs for your organisation.</p>
<p class="govuk-body">A managing agent can submit logs for this organisation.</p>
<% if @total_count == 0 %>
<p class="govuk-body">You do not currently have any managing agents.</p>
<p class="govuk-body">This organisation does not currently have any managing agents.</p>
<% end %>
<% else %>
<%= render partial: "organisations/headings", locals: { main: "Your managing agents", sub: current_user.organisation.name } %>
<p class="govuk-body">A managing agent can submit logs for your organisation.</p>
<%= render partial: "organisations/headings", locals: { main: "This organisation managing agents", sub: current_user.organisation.name } %>
<p class="govuk-body">A managing agent can submit logs for this organisation.</p>
<% if @total_count == 0 %>
<p class="govuk-body">You do not currently have any managing agents.</p>
<p class="govuk-body">This organisation does not currently have any managing agents.</p>
<% end %>
<% end %>
<% if current_user.support? %>

Loading…
Cancel
Save