Use form object colors for form

So that more than one color can be updated at any given time
This commit is contained in:
Claudio Ortolina
2025-07-12 17:35:30 +01:00
parent 2aeae28cd5
commit 06a3e2c54e
@@ -65,7 +65,7 @@ defmodule MusicLibraryWeb.FormComponent do
</legend> </legend>
<div class="mt-2 grid grid-cols-5 gap-2"> <div class="mt-2 grid grid-cols-5 gap-2">
<div <div
:for={{color, index} <- Enum.with_index(@record.dominant_colors, 0)} :for={{color, index} <- Enum.with_index(@form[:dominant_colors].value, 0)}
class="flex flex-col items-center" class="flex flex-col items-center"
> >
<input <input