Add the update action and the form for Publisher.
This commit is contained in:
@@ -20,6 +20,7 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.FormComponent do
|
||||
<.input field={@form[:name]} type="text" label="Name" />
|
||||
<% end %>
|
||||
<%= if @form.source.type == :update do %>
|
||||
<.input field={@form[:name]} type="text" label="Name" />
|
||||
<% end %>
|
||||
|
||||
<:actions>
|
||||
|
||||
Reference in New Issue
Block a user