Skip to content

Commit

Permalink
Improve text on neighbourhood page, remove block comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kimadactyl committed Dec 23, 2021
1 parent 01db471 commit 2519ab0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
6 changes: 3 additions & 3 deletions app/views/admin/neighbourhoods/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
</div>

<% unless @neighbourhood.new_record? %>
<h2>Relations</h2>
<h2>Geography</h2>
<div class="row">
<div class="col-md-6">
<h3>Ancestors</h3>
<h3>Is a part of&hellip;</h3>
<ul>
<% @neighbourhood.ancestors.each do |parent| %>
<li><%= link_to(parent, edit_admin_neighbourhood_path(parent)) if parent.to_s.length > 0 %></li>
<% end %>
</ul>
</div>
<div class="col-md-6">
<h3>Children</h3>
<h3>Contains&hellip;</h3>
<ul>
<% @neighbourhood.children.each do |parent| %>
<li><%= link_to(parent, edit_admin_neighbourhood_path(parent)) if parent.to_s.length > 0 %></li>
Expand Down
31 changes: 4 additions & 27 deletions app/views/admin/neighbourhoods/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,7 @@
const currentInfo = <%= @neighbourhood.to_json.html_safe %>
</script>

<%
=begin%>
<div id="js-ward-picker">
<%
=end%>
<%= render_component "admin_edit",
model: :neighbourhood,
title: @neighbourhood.name
%>
<%
=begin%>
NOTE: removing this for now!
<% if policy(@neighbourhood).new? %>
<h2>Overwrite with ward info</h2>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="form-control-label" for="ward-input">Quick add by ward code (WD19CD). Warning: will overwrite all the above fields!</label>
<input class="form-control bg-danger text-white" id="ward-lookup" v-model="wardSearch" v-on:change="lookupWard()" placeholder="E01234567"></input>
</div>
</div>
</div>
<% end %>
<%
</div>
=end%>

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

0 comments on commit 2519ab0

Please sign in to comment.