Render format and type selects on the same line
With the exception of mobile, where the stacked layout still makes sense.
This commit is contained in:
@@ -26,6 +26,7 @@ defmodule MusicLibraryWeb.RecordLive.FormComponent do
|
|||||||
phx-change="validate"
|
phx-change="validate"
|
||||||
phx-submit="save"
|
phx-submit="save"
|
||||||
>
|
>
|
||||||
|
<div class="sm:columns-2">
|
||||||
<.input
|
<.input
|
||||||
field={@form[:type]}
|
field={@form[:type]}
|
||||||
type="select"
|
type="select"
|
||||||
@@ -40,6 +41,7 @@ defmodule MusicLibraryWeb.RecordLive.FormComponent do
|
|||||||
prompt="Choose a value"
|
prompt="Choose a value"
|
||||||
options={Ecto.Enum.values(MusicLibrary.Records.Record, :format)}
|
options={Ecto.Enum.values(MusicLibrary.Records.Record, :format)}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<.input field={@form[:release]} type="text" label="Release" />
|
<.input field={@form[:release]} type="text" label="Release" />
|
||||||
<div>
|
<div>
|
||||||
<.label for={@uploads.cover_data.ref}>
|
<.label for={@uploads.cover_data.ref}>
|
||||||
|
|||||||
Reference in New Issue
Block a user