Update the Book form to show the label for Publisher.
This commit is contained in:
@@ -17,7 +17,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.SelectedPublisher do
|
||||
assigns = assign(assigns, :publisher, publisher)
|
||||
|
||||
~H"""
|
||||
<button type="button" phx-click="open-select-publisher" phx-target={@notify_component} class="text-white bg-blue-700 hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 font-medium rounded-full text-sm px-5 py-2.5 text-center me-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
|
||||
<button type="button" phx-click="open-select-publisher" phx-target={@notify_component} class="text-white bg-blue-700 hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 font-medium rounded-full text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
|
||||
<%= if @publisher != nil do %>
|
||||
{@publisher.name}
|
||||
<% else %>
|
||||
|
||||
Reference in New Issue
Block a user