<h1>Show Layout</h1> <%= if @live_action in [:edit] do %> <.modal return_to={Routes.layout_show_path(@socket, :show, @layout)}> <.live_component module={CakeWeb.LayoutLive.FormComponent} id={@layout.id} title={@page_title} action={@live_action} layout={@layout} return_to={Routes.layout_show_path(@socket, :show, @layout)} /> </.modal> <% end %> <ul> <li> <strong>Name:</strong> <%= @layout.name %> </li> <li> <strong>Version:</strong> <%= @layout.version %> </li> </ul> <span><%= live_patch "Edit", to: Routes.layout_show_path(@socket, :edit, @layout), class: "button" %></span> | <span><%= live_redirect "Back", to: Routes.layout_index_path(@socket, :index) %></span>