Show Container
<%= if @live_action in [:edit] do %>
<%= live_modal CanneryWeb.ContainerLive.FormComponent,
id: @container.id,
title: @page_title,
action: @live_action,
container: @container,
return_to: Routes.container_show_path(@socket, :show, @container) %>
<% end %>
-
Name:
<%= @container.name %>
-
Desc:
<%= @container.desc %>
-
Type:
<%= @container.type %>
-
Location:
<%= @container.location %>
<%= live_patch "Edit", to: Routes.container_show_path(@socket, :edit, @container), class: "button" %>
<%= live_redirect "Back", to: Routes.container_index_path(@socket, :index) %>