Browse Source

refactor: erblinting

pull/957/head
natdeanlewissoftwire 3 years ago
parent
commit
e87136e4c9
  1. 8
      app/views/organisation_relationships/housing_providers.html.erb
  2. 2
      app/views/organisation_relationships/remove_housing_provider.html.erb

8
app/views/organisation_relationships/housing_providers.html.erb

@ -15,8 +15,8 @@
success: true, title_heading_level: 3,
title_id: "swanky-notifications"
) do |notification_banner|
notification_banner.heading(text: "#{Organisation.find(params['removed_organisation_id']).name} is no longer one of your housing providers")
end %>
notification_banner.heading(text: "#{Organisation.find(params['removed_organisation_id']).name} is no longer one of your housing providers")
end %>
<% end %>
<% end %>
<% if current_user.support? %>
@ -37,8 +37,8 @@
success: true, title_heading_level: 3,
title_id: "swanky-notifications"
) do |notification_banner|
notification_banner.heading(text: "#{Organisation.find(params['removed_organisation_id']).name} is no longer one of this organisation's housing providers")
end %>
notification_banner.heading(text: "#{Organisation.find(params['removed_organisation_id']).name} is no longer one of this organisation's housing providers")
end %>
<% end %>
<p class="govuk-body">This organisation can submit logs for its housing providers.</p>
<% if @total_count == 0 %>

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

@ -1,4 +1,4 @@
<% @organisation_to_remove_id = params['organisation_to_remove_id'] %>
<% @organisation_to_remove_id = params["organisation_to_remove_id"] %>
<%= form_with url: housing_providers_organisation_path(organisation_to_remove_id: @organisation_to_remove_id), method: "delete", local: true do |f| %>
<% if current_user.support? %>
<%= render partial: "organisations/headings", locals: { main: @organisation.name, sub: nil } %>

Loading…
Cancel
Save