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-24 16:44:36 +02:00
|
|
|
<%= for {type, list_of_clothes} <- 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>
|
2021-09-13 14:36:14 +02:00
|
|
|
<tbody>
|
2021-09-24 16:44:36 +02:00
|
|
|
<%= for clothes <- list_of_clothes do %>
|
|
|
|
<%= live_component PokemonCoutureWeb.Components.ClothesComponent, id: clothes.id, clothes: clothes, user: @user %>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-09-13 14:36:14 +02:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|