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