From 2519ab081e3a0e6c1d9b09b20c1b5e1e6d8256a2 Mon Sep 17 00:00:00 2001 From: Dr Kim Foale Date: Thu, 23 Dec 2021 13:32:28 +0000 Subject: [PATCH] Improve text on neighbourhood page, remove block comment --- app/views/admin/neighbourhoods/_form.html.erb | 6 ++-- app/views/admin/neighbourhoods/edit.html.erb | 31 +++---------------- 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/app/views/admin/neighbourhoods/_form.html.erb b/app/views/admin/neighbourhoods/_form.html.erb index dff15e07e..c26f542c1 100644 --- a/app/views/admin/neighbourhoods/_form.html.erb +++ b/app/views/admin/neighbourhoods/_form.html.erb @@ -30,10 +30,10 @@ <% unless @neighbourhood.new_record? %> -

Relations

+

Geography

-

Ancestors

+

Is a part of…

    <% @neighbourhood.ancestors.each do |parent| %>
  • <%= link_to(parent, edit_admin_neighbourhood_path(parent)) if parent.to_s.length > 0 %>
  • @@ -41,7 +41,7 @@
-

Children

+

Contains…

    <% @neighbourhood.children.each do |parent| %>
  • <%= link_to(parent, edit_admin_neighbourhood_path(parent)) if parent.to_s.length > 0 %>
  • diff --git a/app/views/admin/neighbourhoods/edit.html.erb b/app/views/admin/neighbourhoods/edit.html.erb index c8187d5cc..0e505474b 100644 --- a/app/views/admin/neighbourhoods/edit.html.erb +++ b/app/views/admin/neighbourhoods/edit.html.erb @@ -2,30 +2,7 @@ const currentInfo = <%= @neighbourhood.to_json.html_safe %> -<% -=begin%> -
    -<% -=end%> - <%= render_component "admin_edit", - model: :neighbourhood, - title: @neighbourhood.name - %> - <% -=begin%> - NOTE: removing this for now! - <% if policy(@neighbourhood).new? %> -

    Overwrite with ward info

    -
    -
    -
    - - -
    -
    -
    - <% end %> -<% -
    -=end%> - +<%= render_component "admin_edit", + model: :neighbourhood, + title: @neighbourhood.name +%>