From 373afb58ee05ba25330fbde20ddce40a6aedd909 Mon Sep 17 00:00:00 2001 From: Nicolas Sanchez Date: Mon, 6 Jan 2025 13:09:17 -0300 Subject: [PATCH] Fix back to GameMode show buttons in live forms --- .../game_mode_configuration_html/edit.html.heex | 2 -- .../game_mode_configuration_html/new.html.heex | 2 -- .../game_mode_configuration_html/show.html.heex | 2 +- .../lib/configurator_web/live/game_modes/form.html.heex | 9 +++++++++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/edit.html.heex b/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/edit.html.heex index 651977409..3d9e76d97 100644 --- a/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/edit.html.heex +++ b/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/edit.html.heex @@ -6,5 +6,3 @@ <%= live_render(@conn, ConfiguratorWeb.GameModeConfigurationsLive.Form, session: %{"version" => @version, "game_mode_configuration" => @game_mode_configuration} ) %> - -<.back navigate={~p"/versions/#{@version}/game_mode_configurations"}>Back to game_mode_configurations diff --git a/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/new.html.heex b/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/new.html.heex index cbfc2600e..598c548cb 100644 --- a/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/new.html.heex +++ b/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/new.html.heex @@ -4,5 +4,3 @@ <%= live_render(@conn, ConfiguratorWeb.GameModeConfigurationsLive.Form, session: %{"version" => @version}) %> - -<.back navigate={~p"/versions/#{@version}/game_mode_configurations"}>Back to game_mode_configurations diff --git a/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/show.html.heex b/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/show.html.heex index 43a4a86b6..609b0a9a9 100644 --- a/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/show.html.heex +++ b/apps/configurator/lib/configurator_web/controllers/game_mode_configuration_html/show.html.heex @@ -33,4 +33,4 @@ <% end %> -<.back navigate={~p"/versions/#{@version}/game_mode_configurations"}>Back to game_mode_configurations +<.back navigate={~p"/versions/#{@version}/game_mode_configurations"}>Back to Game Mode Configurations diff --git a/apps/configurator/lib/configurator_web/live/game_modes/form.html.heex b/apps/configurator/lib/configurator_web/live/game_modes/form.html.heex index f2492541c..8d21ca532 100644 --- a/apps/configurator/lib/configurator_web/live/game_modes/form.html.heex +++ b/apps/configurator/lib/configurator_web/live/game_modes/form.html.heex @@ -71,3 +71,12 @@ <.button>Save Game configuration + +
+ <.link + href={~p"/versions/#{@version}/game_mode_configurations"} + class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700" + > + <.icon name="hero-arrow-left-solid" class="h-3 w-3" /> Back to Game Mode Configurations + +