Update the button style for Show LiveViews.

dev
KKlochko 3 months ago
parent 4f86571579
commit d563034bb2

@ -10,7 +10,9 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Show do
<:actions>
<.link navigate={~p"/authors/#{@author}/edit"}>
<.button>Edit author</.button>
<.edit_button>
Edit
</.edit_button>
</.link>
</:actions>
</.header>

@ -9,8 +9,10 @@ defmodule DecentralisedBookIndexWeb.BookLive.Show do
<:subtitle>This is a book record from your database.</:subtitle>
<:actions>
<.link patch={~p"/books/#{@book}/show/edit"} phx-click={JS.push_focus()}>
<.button>Edit book</.button>
<.link patch={~p"/books/#{@book}/edit"}>
<.edit_button>
Edit
</.edit_button>
</.link>
</:actions>
</.header>
@ -34,18 +36,6 @@ defmodule DecentralisedBookIndexWeb.BookLive.Show do
</.list>
<.back navigate={~p"/books"}>Back to books</.back>
<.modal :if={@live_action == :edit} id="book-modal" show on_cancel={JS.patch(~p"/books/#{@book}")}>
<.live_component
module={DecentralisedBookIndexWeb.BookLive.FormComponent}
id={@book.id}
title={@page_title}
action={@live_action}
current_user={@current_user}
book={@book}
patch={~p"/books/#{@book}"}
/>
</.modal>
"""
end

@ -10,7 +10,9 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Show do
<:actions>
<.link patch={~p"/dbi_servers/#{@dbi_server}/show/edit"} phx-click={JS.push_focus()}>
<.button>Edit dbi_server</.button>
<.edit_button>
Edit
</.edit_button>
</.link>
</:actions>
</.header>

@ -10,7 +10,9 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do
<:actions>
<.link patch={~p"/publishers/#{@publisher}/show/edit"} phx-click={JS.push_focus()}>
<.button>Edit publisher</.button>
<.edit_button>
Edit
</.edit_button>
</.link>
</:actions>
</.header>

Loading…
Cancel
Save