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

Loading…
Cancel
Save