Ability to edit geozones from admin dashboard

This commit is contained in:
Alberto Miedes Garcés
2016-12-07 22:08:22 +01:00
parent 4b31360d2e
commit fea2009396
8 changed files with 69 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
<div class="row">
<div class="small-12 column">
<%= link_to admin_geozones_path, class: "back" do %>
<span class="icon-angle-left"></span>
<%= t("admin.geozones.edit.back") %>
<% end %>
<h1><%= t("admin.geozones.edit.editing") %></h1>
<%= render "form" %>
</div>
</div>

View File

@@ -9,6 +9,7 @@
<th><%= t("admin.geozones.geozone.name") %></th>
<th><%= t("admin.geozones.geozone.external_code") %></th>
<th><%= t("admin.geozones.geozone.census_code") %></th>
<th colspan="2"></th>
</tr>
</thead>
@@ -18,6 +19,9 @@
<td><%= geozone.name %></td>
<td><%= geozone.external_code %></td>
<td><%= geozone.census_code %></td>
<td>
<%= link_to t("admin.geozones.index.edit"), edit_admin_geozone_path(geozone), class: 'edit-banner button hollow' %>
</td>
</tr>
<% end %>
</tbody>