|
|
@ -33,10 +33,13 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
|
|
|
label="Language"
|
|
|
|
label="Language"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<.input field={@form[:page_count]} type="number" label="Page count" />
|
|
|
|
<.input field={@form[:page_count]} type="number" label="Page count" />
|
|
|
|
<.selected_publisher
|
|
|
|
<div>
|
|
|
|
publisher_form={@form[:publisher_id]}
|
|
|
|
<.label>Publisher</.label>
|
|
|
|
notify_component={@myself}
|
|
|
|
<.selected_publisher
|
|
|
|
/>
|
|
|
|
publisher_form={@form[:publisher_id]}
|
|
|
|
|
|
|
|
notify_component={@myself}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<.input
|
|
|
|
<.input
|
|
|
|
field={@form[:published]}
|
|
|
|
field={@form[:published]}
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
@ -60,10 +63,13 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
|
|
|
label="Language"
|
|
|
|
label="Language"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<.input field={@form[:page_count]} type="number" label="Page count" />
|
|
|
|
<.input field={@form[:page_count]} type="number" label="Page count" />
|
|
|
|
<.selected_publisher
|
|
|
|
<div>
|
|
|
|
publisher_form={@form[:publisher_id]}
|
|
|
|
<.label>Publisher</.label>
|
|
|
|
notify_component={@myself}
|
|
|
|
<.selected_publisher
|
|
|
|
/>
|
|
|
|
publisher_form={@form[:publisher_id]}
|
|
|
|
|
|
|
|
notify_component={@myself}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<.input
|
|
|
|
<.input
|
|
|
|
field={@form[:published]}
|
|
|
|
field={@form[:published]}
|
|
|
|
type="date"
|
|
|
|
type="date"
|
|
|
@ -90,7 +96,6 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do
|
|
|
|
<.live_component
|
|
|
|
<.live_component
|
|
|
|
id="select-publisher"
|
|
|
|
id="select-publisher"
|
|
|
|
module={SelectPublisher}
|
|
|
|
module={SelectPublisher}
|
|
|
|
action={:edit}
|
|
|
|
|
|
|
|
current_user={@current_user}
|
|
|
|
current_user={@current_user}
|
|
|
|
notify_component={@myself}
|
|
|
|
notify_component={@myself}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|