Skip to content

Commit

Permalink
Fix back to GameMode show buttons in live forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Sanchez committed Jan 6, 2025
1 parent 6a38e5c commit 373afb5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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</.back>
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
</.header>

<%= live_render(@conn, ConfiguratorWeb.GameModeConfigurationsLive.Form, session: %{"version" => @version}) %>

<.back navigate={~p"/versions/#{@version}/game_mode_configurations"}>Back to game_mode_configurations</.back>
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
<% end %>
</.modal>

<.back navigate={~p"/versions/#{@version}/game_mode_configurations"}>Back to game_mode_configurations</.back>
<.back navigate={~p"/versions/#{@version}/game_mode_configurations"}>Back to Game Mode Configurations</.back>
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,12 @@
<.button>Save Game configuration</.button>
</:actions>
</.simple_form>

<div class="mt-16">
<.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
</.link>
</div>

0 comments on commit 373afb5

Please sign in to comment.