Skip to content

Commit

Permalink
still nah. lol
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiwitch committed Jan 19, 2022
1 parent d16b742 commit dcb52fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/sites/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
<div class="links">
<%= link_to_add_association 'Add secondary neighbourhood', f, :sites_neighbourhoods %>
<%= link_to_add_association 'Add secondary neighbourhood', f, :site__neighbourhoods %>
</div>
</div>

Expand Down
6 changes: 3 additions & 3 deletions app/views/admin/sites/_sites_neighbourhoods.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class='nested-fields'>
<div class="nested-fields">
<%= 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 %>
</div>

0 comments on commit dcb52fe

Please sign in to comment.