From ba351588c3b24f91ea5782d9c3405a146ad5b59d Mon Sep 17 00:00:00 2001 From: tvillegas98 Date: Wed, 13 Nov 2024 11:00:53 -0300 Subject: [PATCH] feat: add square wall to index --- .../controllers/map_configuration_html/index.html.heex | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/configurator/lib/configurator_web/controllers/map_configuration_html/index.html.heex b/apps/configurator/lib/configurator_web/controllers/map_configuration_html/index.html.heex index cd157f3d5..d20524696 100644 --- a/apps/configurator/lib/configurator_web/controllers/map_configuration_html/index.html.heex +++ b/apps/configurator/lib/configurator_web/controllers/map_configuration_html/index.html.heex @@ -60,6 +60,16 @@ <% end %> + <:col :let={map_configuration} label="Square Wall"> + <%= if is_nil(map_configuration.square_wall) do %> +

N/A

+ <% else %> + <.button type="button" phx-click={show_modal("square-wall-#{map_configuration.id}")}>Show + <.modal id={"square-wall-#{map_configuration.id}"}> +

<%= json_encode(map_configuration.square_wall) %>

+ + <% end %> + <:action :let={map_configuration}> <.link navigate={~p"/map_configurations/#{map_configuration}"}>View