Make input names for search(es) more consistent
This commit is contained in:
@@ -9,12 +9,14 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do
|
|||||||
<div>
|
<div>
|
||||||
<.simple_form
|
<.simple_form
|
||||||
for={@form}
|
for={@form}
|
||||||
id="search-form"
|
id={:import_form}
|
||||||
phx-target={@myself}
|
phx-target={@myself}
|
||||||
phx-change="search"
|
phx-change="search"
|
||||||
phx-submit="search"
|
phx-submit="search"
|
||||||
>
|
>
|
||||||
<.input
|
<.input
|
||||||
|
id={:import_query}
|
||||||
|
name={:import_query}
|
||||||
field={@form[:query]}
|
field={@form[:query]}
|
||||||
type="text"
|
type="text"
|
||||||
label="Search for a record on MusicBrainz"
|
label="Search for a record on MusicBrainz"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
<input
|
<input
|
||||||
type="search"
|
type="search"
|
||||||
class="w-full rounded-lg text-zinc-900 focus:ring-0 sm:text-sm sm:leading-6"
|
class="w-full rounded-lg text-zinc-900 focus:ring-0 sm:text-sm sm:leading-6"
|
||||||
id="query"
|
id={:record_search}
|
||||||
name="query"
|
name={:record_search}
|
||||||
value={@record_list_params.query}
|
value={@record_list_params.query}
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
phx-debounce="500"
|
phx-debounce="500"
|
||||||
|
|||||||
Reference in New Issue
Block a user