AUTOGEN: Locations.
This commit is contained in:
34
lib/runosaari_web/templates/location/index.html.eex
Normal file
34
lib/runosaari_web/templates/location/index.html.eex
Normal file
@@ -0,0 +1,34 @@
|
||||
<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>
|
||||
|
||||
<td>
|
||||
<span><%= link "Show", to: Routes.location_path(@conn, :show, location) %></span>
|
||||
<span><%= link "Edit", to: Routes.location_path(@conn, :edit, location) %></span>
|
||||
<span><%= link "Delete", to: Routes.location_path(@conn, :delete, location), method: :delete, data: [confirm: "Are you sure?"] %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span><%= link "New Location", to: Routes.location_path(@conn, :new) %></span>
|
||||
Reference in New Issue
Block a user