From dcb52fec57ab1749d2c8266c6dad94335f6c685c Mon Sep 17 00:00:00 2001 From: Alexandria Date: Wed, 19 Jan 2022 22:14:17 +0000 Subject: [PATCH] still nah. lol --- app/views/admin/sites/_form.html.erb | 4 ++-- app/views/admin/sites/_sites_neighbourhoods.erb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/admin/sites/_form.html.erb b/app/views/admin/sites/_form.html.erb index a8d0fc04c..bf892ab7e 100644 --- a/app/views/admin/sites/_form.html.erb +++ b/app/views/admin/sites/_form.html.erb @@ -69,10 +69,10 @@ input_html: {class: 'form-control select2' } %> <%= f.simple_fields_for :site__neighbourhoods do |neighbourhood| %> - <%= render 'sites_neighbourhoods', f: neighbourhood %> + <%= render 'sites_neighbourhoods', :f => neighbourhood %> <% end %> diff --git a/app/views/admin/sites/_sites_neighbourhoods.erb b/app/views/admin/sites/_sites_neighbourhoods.erb index c5db5b22b..1d046cc39 100644 --- a/app/views/admin/sites/_sites_neighbourhoods.erb +++ b/app/views/admin/sites/_sites_neighbourhoods.erb @@ -1,5 +1,5 @@ -
+
<%= f.input :name %> - <%= f.hidden_field :relation_type, value: "Secondary" %> - <%= link_to_remove_association "Remove Sites Neighbourhood" %> + <%= f.hidden_field :relation_type, value: 'Secondary' %> + <%= link_to_remove_association 'Remove', f %>