Fix the Book FormComponent to save publisher_id.
This commit is contained in:
@@ -36,7 +36,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
||||
/>
|
||||
<.input field={@form[:page_count]} type="number" label="Page count" />
|
||||
<div>
|
||||
<.label>Publisher</.label>
|
||||
<.input field={@form[:publisher_id]} type="text" label="Publisher" type="hidden" />
|
||||
<.selected_publisher
|
||||
publisher_form={@form[:publisher_id]}
|
||||
notify_component={@myself}
|
||||
@@ -66,7 +66,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
||||
/>
|
||||
<.input field={@form[:page_count]} type="number" label="Page count" />
|
||||
<div>
|
||||
<.label>Publisher</.label>
|
||||
<.input field={@form[:publisher_id]} type="text" label="Publisher" type="hidden" />
|
||||
<.selected_publisher
|
||||
publisher_form={@form[:publisher_id]}
|
||||
notify_component={@myself}
|
||||
|
||||
Reference in New Issue
Block a user