Use form object colors for form
So that more than one color can be updated at any given time
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user