Update the Book form to show the label for Publisher.
This commit is contained in:
@@ -33,10 +33,13 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
||||
label="Language"
|
||||
/>
|
||||
<.input field={@form[:page_count]} type="number" label="Page count" />
|
||||
<.selected_publisher
|
||||
publisher_form={@form[:publisher_id]}
|
||||
notify_component={@myself}
|
||||
/>
|
||||
<div>
|
||||
<.label>Publisher</.label>
|
||||
<.selected_publisher
|
||||
publisher_form={@form[:publisher_id]}
|
||||
notify_component={@myself}
|
||||
/>
|
||||
</div>
|
||||
<.input
|
||||
field={@form[:published]}
|
||||
type="date"
|
||||
@@ -60,10 +63,13 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
||||
label="Language"
|
||||
/>
|
||||
<.input field={@form[:page_count]} type="number" label="Page count" />
|
||||
<.selected_publisher
|
||||
publisher_form={@form[:publisher_id]}
|
||||
notify_component={@myself}
|
||||
/>
|
||||
<div>
|
||||
<.label>Publisher</.label>
|
||||
<.selected_publisher
|
||||
publisher_form={@form[:publisher_id]}
|
||||
notify_component={@myself}
|
||||
/>
|
||||
</div>
|
||||
<.input
|
||||
field={@form[:published]}
|
||||
type="date"
|
||||
@@ -90,7 +96,6 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
||||
<.live_component
|
||||
id="select-publisher"
|
||||
module={SelectPublisher}
|
||||
action={:edit}
|
||||
current_user={@current_user}
|
||||
notify_component={@myself}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user