Listing Containers

<%= if @live_action in [:new, :edit] do %> <%= live_modal CanneryWeb.ContainerLive.FormComponent, id: @container.id || :new, title: @page_title, action: @live_action, container: @container, return_to: Routes.container_index_path(@socket, :index) %> <% end %> <%= for container <- @containers do %> <% end %>
Name Desc Type Location
<%= container.name %> <%= container.desc %> <%= container.type %> <%= container.location %> <%= live_redirect "Show", to: Routes.container_show_path(@socket, :show, container) %> <%= live_patch "Edit", to: Routes.container_index_path(@socket, :edit, container) %> <%= link "Delete", to: "#", phx_click: "delete", phx_value_id: container.id, data: [confirm: "Are you sure?"] %>
<%= live_patch "New Container", to: Routes.container_index_path(@socket, :new) %>