2021-09-13 14:36:14 +02:00
|
|
|
<h1>Listing Clothes</h1>
|
2021-09-24 16:44:36 +02:00
|
|
|
<%= for {shop, map_of_clothes_by_type} <- @clothes_map do %>
|
2021-09-13 14:36:14 +02:00
|
|
|
<h2> <%= shop %></h2>
|
2021-09-29 15:00:49 +02:00
|
|
|
<%= for {type, map_of_clothes_by_name} <- map_of_clothes_by_type do %>
|
2021-09-24 16:44:36 +02:00
|
|
|
<h3> <%= type %> </h3>
|
2021-09-29 15:00:49 +02:00
|
|
|
<%= for {name, list_of_clothes} <- map_of_clothes_by_name do %>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="3" style="text-align:center"> <b> <%= name %> </b> </th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Color</th>
|
|
|
|
<th>Game</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<%= for clothes <- list_of_clothes do %>
|
|
|
|
<%= live_component PokemonCoutureWeb.Components.ClothesComponent, id: clothes.id, clothes: clothes, user: @user %>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-09-24 16:44:36 +02:00
|
|
|
<% end %>
|
2021-09-13 14:36:14 +02:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|