Admin pages.

This commit is contained in:
codevictory
2021-04-22 21:00:55 +03:00
parent b06bae000f
commit cebe145c32
10 changed files with 121 additions and 22 deletions

View File

@@ -20,15 +20,9 @@
<td><%= location.reserved_seats %></td>
<td><%= location.max_seats %></td>
<td><%= location.description %></td>
<td>
<span><%= link "Show", to: Routes.location_path(@conn, :show, location) %></span>
<span><%= link "Edit", to: Routes.admin_location_path(@conn, :edit, location) %></span>
<span><%= link "Delete", to: Routes.admin_location_path(@conn, :delete, location), method: :delete, data: [confirm: "Are you sure?"] %></span>
</td>
</tr>
<% end %>
</tbody>
</table>
<span><%= link "New Location", to: Routes.admin_location_path(@conn, :new) %></span>
<span><%= link "Hallinta", to: Routes.admin_location_path(@conn, :admin) %></span>