Note that in the budgets wizard test we now create district with no associated geozone, so the text "all city" will appear in the districts table too, meaning we can't use `within "section", text: "All city" do` anymore since it would result in an ambiguous match. Co-Authored-By: Julian Herrero <microweb10@gmail.com> Co-Authored-By: Javi Martín <javim@elretirao.net>
32 lines
990 B
Plaintext
32 lines
990 B
Plaintext
<%= header do %>
|
|
<%= link_to t("admin.geozones.index.create"), new_admin_geozone_path %>
|
|
<% end %>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("admin.geozones.geozone.name") %></th>
|
|
<th><%= t("admin.geozones.geozone.external_code") %></th>
|
|
<th><%= t("admin.geozones.geozone.census_code") %></th>
|
|
<th><%= t("admin.geozones.geozone.coordinates") %></th>
|
|
<th><%= t("admin.geozones.geozone.geojson") %></th>
|
|
<th><%= t("admin.actions.actions") %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% geozones.each do |geozone| %>
|
|
<tr id="<%= dom_id(geozone) %>">
|
|
<td><%= geozone.name %></td>
|
|
<td><%= geozone.external_code %></td>
|
|
<td><%= geozone.census_code %></td>
|
|
<td><%= yes_no_text(geozone.html_map_coordinates.present?) %></td>
|
|
<td><%= yes_no_text(geozone.geojson.present?) %></td>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(geozone) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|