2021-10-11 13:34:23 +02:00
|
|
|
<h1>Clothes Tracker</h1>
|
2021-10-06 14:43:18 +02:00
|
|
|
<div class="trackers">
|
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-10-06 14:43:18 +02:00
|
|
|
<div class="shop-all">
|
2021-09-29 15:00:49 +02:00
|
|
|
<%= for {type, map_of_clothes_by_name} <- map_of_clothes_by_type do %>
|
2021-10-06 14:43:18 +02:00
|
|
|
<!-- <h3> <%= type %> </h3> -->
|
|
|
|
<div class="clothes-type">
|
2021-09-29 15:00:49 +02:00
|
|
|
<%= for {name, list_of_clothes} <- map_of_clothes_by_name do %>
|
2021-10-05 15:26:17 +02:00
|
|
|
<table class="tracker-table">
|
2021-09-29 15:00:49 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="3" style="text-align:center"> <b> <%= name %> </b> </th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-10-05 15:26:17 +02:00
|
|
|
<th class="row-color">Color</th>
|
|
|
|
<th class="row-game">Game</th>
|
|
|
|
<th class="row-toggle"></th>
|
2021-09-29 15:00:49 +02:00
|
|
|
</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-10-06 14:43:18 +02:00
|
|
|
</div>
|
2021-09-13 14:36:14 +02:00
|
|
|
<% end %>
|
2021-10-06 14:43:18 +02:00
|
|
|
</div>
|
2021-09-13 14:36:14 +02:00
|
|
|
<% end %>
|
2021-10-06 14:43:18 +02:00
|
|
|
</div>
|