Skip to content

Commit

Permalink
feat: add square wall to index
Browse files Browse the repository at this point in the history
  • Loading branch information
tvillegas98 committed Nov 13, 2024
1 parent 077b6ae commit ba35158
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@
</.modal>
<% end %>
</:col>
<:col :let={map_configuration} label="Square Wall">
<%= if is_nil(map_configuration.square_wall) do %>
<p>N/A</p>
<% else %>
<.button type="button" phx-click={show_modal("square-wall-#{map_configuration.id}")}>Show</.button>
<.modal id={"square-wall-#{map_configuration.id}"}>
<p class="whitespace-pre"><%= json_encode(map_configuration.square_wall) %></p>
</.modal>
<% end %>
</:col>
<:action :let={map_configuration}>
<.link navigate={~p"/map_configurations/#{map_configuration}"}>View</.link>
</:action>
Expand Down

0 comments on commit ba35158

Please sign in to comment.