29 lines
603 B
Elixir
29 lines
603 B
Elixir
<h1>Listing Locations</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Address</th>
|
|
<th>Reserved seats</th>
|
|
<th>Max seats</th>
|
|
<th>Description</th>
|
|
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<%= for location <- @locations do %>
|
|
<tr>
|
|
<td><%= location.name %></td>
|
|
<td><%= location.address %></td>
|
|
<td><%= location.reserved_seats %></td>
|
|
<td><%= location.max_seats %></td>
|
|
<td><%= location.description %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<span><%= link "Hallinta", to: Routes.admin_location_path(@conn, :admin) %></span>
|