diff --git a/lib/music_library_web/live/scrobbled_tracks_live/form_component.ex b/lib/music_library_web/live/scrobbled_tracks_live/form_component.ex index f45c87f3..8c815ff6 100644 --- a/lib/music_library_web/live/scrobbled_tracks_live/form_component.ex +++ b/lib/music_library_web/live/scrobbled_tracks_live/form_component.ex @@ -46,24 +46,27 @@ defmodule MusicLibraryWeb.ScrobbledTracksLive.FormComponent do /> - <.input - field={@form[:scrobbled_at_label]} - type="text" - label={gettext("Scrobbled Date/Time")} - placeholder={gettext("Format: DD/MM/YYYY HH:MM:SS")} - /> +
+ {@form[:title].value} - <.input - field={@form[:cover_url]} - type="url" - label={gettext("Cover Image URL (optional)")} - placeholder="https://example.com/cover.jpg" - /> + <.input + field={@form[:cover_url]} + type="url" + label={gettext("Cover Image URL (optional)")} + placeholder="https://example.com/cover.jpg" + /> +
<:actions> - <.button phx-disable-with={gettext("Saving...")}> - {gettext("Update Track")} - +
+ <.button variant="solid" class="w-full md:w-auto" phx-disable-with={gettext("Saving...")}> + {gettext("Update Track")} + +
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 165b751a..00cc9905 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -1367,11 +1367,6 @@ msgstr "" msgid "Edit track" msgstr "" -#: lib/music_library_web/live/scrobbled_tracks_live/form_component.ex -#, elixir-autogen, elixir-format -msgid "Format: DD/MM/YYYY HH:MM:SS" -msgstr "" - #: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex #, elixir-autogen, elixir-format msgid "No scrobbled tracks found" @@ -1382,11 +1377,6 @@ msgstr "" msgid "Scrobbled" msgstr "" -#: lib/music_library_web/live/scrobbled_tracks_live/form_component.ex -#, elixir-autogen, elixir-format -msgid "Scrobbled Date/Time" -msgstr "" - #: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/live/scrobbled_tracks_live/index.ex #, elixir-autogen, elixir-format diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index cd03167e..7e75e4e3 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -1367,11 +1367,6 @@ msgstr "" msgid "Edit track" msgstr "" -#: lib/music_library_web/live/scrobbled_tracks_live/form_component.ex -#, elixir-autogen, elixir-format -msgid "Format: DD/MM/YYYY HH:MM:SS" -msgstr "" - #: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex #, elixir-autogen, elixir-format, fuzzy msgid "No scrobbled tracks found" @@ -1382,11 +1377,6 @@ msgstr "" msgid "Scrobbled" msgstr "" -#: lib/music_library_web/live/scrobbled_tracks_live/form_component.ex -#, elixir-autogen, elixir-format -msgid "Scrobbled Date/Time" -msgstr "" - #: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/live/scrobbled_tracks_live/index.ex #, elixir-autogen, elixir-format, fuzzy