Update the Publisher Show LiveView to remove redundant information.

dev
KKlochko 2 months ago
parent 7c77ff3b23
commit 7b2c726b2c

@ -4,9 +4,8 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do
@impl true @impl true
def render(assigns) do def render(assigns) do
~H""" ~H"""
Publisher {@publisher.id}
<:subtitle>This is a publisher record from your database.</:subtitle>
<.header class="flex-col lg:flex-row"> <.header class="flex-col lg:flex-row">
{@publisher.name}
<:actions> <:actions>
<.link patch={~p"/publishers/#{@publisher}/edit"} phx-click={JS.push_focus()}> <.link patch={~p"/publishers/#{@publisher}/edit"} phx-click={JS.push_focus()}>
@ -17,12 +16,6 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do
</:actions> </:actions>
</.header> </.header>
<.list>
<:item title="Id">{@publisher.id}</:item>
<:item title="Name">{@publisher.name}</:item>
</.list>
<.back navigate={~p"/publishers"}>Back to publishers</.back> <.back navigate={~p"/publishers"}>Back to publishers</.back>
""" """
end end

Loading…
Cancel
Save