Use Fluxon selects for record form
This commit is contained in:
@@ -34,18 +34,14 @@ defmodule MusicLibraryWeb.FormComponent do
|
||||
phx-submit="save"
|
||||
>
|
||||
<div class="sm:columns-2">
|
||||
<.input
|
||||
<Fluxon.Components.Select.select
|
||||
field={@form[:type]}
|
||||
type="select"
|
||||
label={gettext("Type")}
|
||||
prompt={gettext("Choose a value")}
|
||||
options={types_with_labels()}
|
||||
/>
|
||||
<.input
|
||||
<Fluxon.Components.Select.select
|
||||
field={@form[:format]}
|
||||
type="select"
|
||||
label={gettext("Format")}
|
||||
prompt={gettext("Choose a value")}
|
||||
options={formats_with_labels()}
|
||||
/>
|
||||
</div>
|
||||
@@ -55,11 +51,9 @@ defmodule MusicLibraryWeb.FormComponent do
|
||||
type="text"
|
||||
label={gettext("MusicBrainz ID")}
|
||||
/>
|
||||
<.input
|
||||
<Fluxon.Components.Select.select
|
||||
field={@form[:selected_release_id]}
|
||||
type="select"
|
||||
label={gettext("Selected Release")}
|
||||
prompt={gettext("Choose a Release")}
|
||||
options={Record.selected_release_id_options(@record)}
|
||||
/>
|
||||
<div class="sm:columns-2">
|
||||
|
||||
@@ -23,11 +23,6 @@ msgstr ""
|
||||
msgid "Are you sure?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/form_component.ex
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Choose a value"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/layouts/app.html.heex
|
||||
#: lib/music_library_web/live/artist_live/show.html.heex
|
||||
#: lib/music_library_web/live/collection_live/index.ex
|
||||
@@ -743,11 +738,6 @@ msgstr ""
|
||||
msgid "Release Date"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/form_component.ex
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Choose a Release"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/live/collection_live/show.html.heex
|
||||
#: lib/music_library_web/live/wishlist_live/show.html.heex
|
||||
#, elixir-autogen, elixir-format
|
||||
|
||||
@@ -23,11 +23,6 @@ msgstr ""
|
||||
msgid "Are you sure?"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/form_component.ex
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Choose a value"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/layouts/app.html.heex
|
||||
#: lib/music_library_web/live/artist_live/show.html.heex
|
||||
#: lib/music_library_web/live/collection_live/index.ex
|
||||
@@ -743,11 +738,6 @@ msgstr ""
|
||||
msgid "Release Date"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/form_component.ex
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Choose a Release"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/live/collection_live/show.html.heex
|
||||
#: lib/music_library_web/live/wishlist_live/show.html.heex
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
|
||||
Reference in New Issue
Block a user