Update the button style for Show LiveViews.
This commit is contained in:
@@ -10,7 +10,9 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Show do
|
|||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link navigate={~p"/authors/#{@author}/edit"}>
|
<.link navigate={~p"/authors/#{@author}/edit"}>
|
||||||
<.button>Edit author</.button>
|
<.edit_button>
|
||||||
|
Edit
|
||||||
|
</.edit_button>
|
||||||
</.link>
|
</.link>
|
||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|||||||
@@ -9,8 +9,10 @@ defmodule DecentralisedBookIndexWeb.BookLive.Show do
|
|||||||
<:subtitle>This is a book record from your database.</:subtitle>
|
<:subtitle>This is a book record from your database.</:subtitle>
|
||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link patch={~p"/books/#{@book}/show/edit"} phx-click={JS.push_focus()}>
|
<.link patch={~p"/books/#{@book}/edit"}>
|
||||||
<.button>Edit book</.button>
|
<.edit_button>
|
||||||
|
Edit
|
||||||
|
</.edit_button>
|
||||||
</.link>
|
</.link>
|
||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
@@ -34,18 +36,6 @@ defmodule DecentralisedBookIndexWeb.BookLive.Show do
|
|||||||
</.list>
|
</.list>
|
||||||
|
|
||||||
<.back navigate={~p"/books"}>Back to books</.back>
|
<.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
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Show do
|
|||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link patch={~p"/dbi_servers/#{@dbi_server}/show/edit"} phx-click={JS.push_focus()}>
|
<.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>
|
</.link>
|
||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do
|
|||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link patch={~p"/publishers/#{@publisher}/show/edit"} phx-click={JS.push_focus()}>
|
<.link patch={~p"/publishers/#{@publisher}/show/edit"} phx-click={JS.push_focus()}>
|
||||||
<.button>Edit publisher</.button>
|
<.edit_button>
|
||||||
|
Edit
|
||||||
|
</.edit_button>
|
||||||
</.link>
|
</.link>
|
||||||
</:actions>
|
</:actions>
|
||||||
</.header>
|
</.header>
|
||||||
|
|||||||
Reference in New Issue
Block a user