Note the CSS could probably be improved to avoid duplication with other button style definitions. However, that's fine because we're going to change the style of the links soon. For the same reason, I haven't bothered to style every single link the way it was until now.
31 lines
947 B
Plaintext
31 lines
947 B
Plaintext
<%= link_to t("admin.geozones.index.create"),
|
|
new_admin_geozone_path, class: "button float-right" %>
|
|
|
|
<h2 class="inline-block"><%= t("admin.geozones.index.title") %></h2>
|
|
|
|
<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.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 class="break"><%= geozone.html_map_coordinates %></td>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(geozone) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|