diff --git a/priv/templates/phx.gen.html/index.html.heex b/priv/templates/phx.gen.html/index.html.heex index b6273d48ad..772a71077e 100644 --- a/priv/templates/phx.gen.html/index.html.heex +++ b/priv/templates/phx.gen.html/index.html.heex @@ -1,9 +1,11 @@ <.header> Listing <%= schema.human_plural %> <:actions> - <.link href={~p"<%= schema.route_prefix %>/new"}> - <.button>New <%= schema.human_singular %> - + <.button phx-click={JS.dispatch("click", to: {:inner, "a"})}> + <.link href={~p"<%= schema.route_prefix %>/new"}> + New <%= schema.human_singular %> + + diff --git a/priv/templates/phx.gen.html/show.html.heex b/priv/templates/phx.gen.html/show.html.heex index 3442892780..9b46db5678 100644 --- a/priv/templates/phx.gen.html/show.html.heex +++ b/priv/templates/phx.gen.html/show.html.heex @@ -2,9 +2,11 @@ <%= schema.human_singular %> <%%= @<%= schema.singular %>.id %> <:subtitle>This is a <%= schema.singular %> record from your database. <:actions> - <.link href={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}/edit"}> - <.button>Edit <%= schema.singular %> - + <.button phx-click={JS.dispatch("click", to: {:inner, "a"})}> + <.link href={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}/edit"}> + Edit <%= schema.singular %> + + diff --git a/priv/templates/phx.gen.live/index.ex b/priv/templates/phx.gen.live/index.ex index d6055a6699..ff23665abd 100644 --- a/priv/templates/phx.gen.live/index.ex +++ b/priv/templates/phx.gen.live/index.ex @@ -9,9 +9,11 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web <.header> Listing <%= schema.human_plural %> <:actions> - <.link navigate={~p"<%= schema.route_prefix %>/new"}> - <.button>New <%= schema.human_singular %> - + <.button phx-click={JS.dispatch("click", to: {:inner, "a"})}> + <.link navigate={~p"<%= schema.route_prefix %>/new"}> + New <%= schema.human_singular %> + + diff --git a/priv/templates/phx.gen.live/show.ex b/priv/templates/phx.gen.live/show.ex index 6d6e1ac278..140016c74d 100644 --- a/priv/templates/phx.gen.live/show.ex +++ b/priv/templates/phx.gen.live/show.ex @@ -10,9 +10,11 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web <%= schema.human_singular %> <%%= @<%= schema.singular %>.id %> <:subtitle>This is a <%= schema.singular %> record from your database. <:actions> - <.link navigate={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}/edit?return_to=show"}> - <.button>Edit <%= schema.singular %> - + <.button phx-click={JS.dispatch("click", to: {:inner, "a"})}> + <.link navigate={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}/edit?return_to=show"}> + Edit <%= schema.singular %> + +