2021-06-28 16:32:25 +02:00
|
|
|
<h1>Listing Clothes</h1>
|
2021-10-07 17:26:45 +02:00
|
|
|
<%= for {shop, map_of_clothes_by_type} <- @clothes_map do %>
|
2021-07-07 19:08:29 +02:00
|
|
|
<h2> <%= shop %></h2>
|
2021-10-07 17:26:45 +02:00
|
|
|
<%= for {type, map_of_clothes_by_name} <- map_of_clothes_by_type do %>
|
|
|
|
<h3> <%= type %></h3>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Color</th>
|
|
|
|
<th>Game</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<%= for {_name, list_of_clothes} <- map_of_clothes_by_name do %>
|
|
|
|
<%= for clothes <- list_of_clothes do %>
|
|
|
|
<tr>
|
|
|
|
<td><%= clothes.name %></td>
|
|
|
|
<td><%= clothes.color %></td>
|
|
|
|
<td><%= clothes.game %></td>
|
2021-06-28 16:32:25 +02:00
|
|
|
|
2021-10-07 17:26:45 +02:00
|
|
|
<td>
|
|
|
|
<span><%= link "Show", to: Routes.clothes_path(@conn, :show, clothes) %></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-07-07 19:08:29 +02:00
|
|
|
<% end %>
|
2021-06-28 16:32:25 +02:00
|
|
|
<% end %>
|