Show Invite
<%= if @live_action in [:edit] do %>
<%= live_modal CanneryWeb.InviteLive.FormComponent,
id: @invite.id,
title: @page_title,
action: @live_action,
invite: @invite,
return_to: Routes.invite_show_path(@socket, :show, @invite) %>
<% end %>
-
Name:
<%= @invite.name %>
-
Token:
<%= @invite.token %>
<%= live_patch "Edit", to: Routes.invite_show_path(@socket, :edit, @invite), class: "button" %>
<%= live_redirect "Back", to: Routes.invite_index_path(@socket, :index) %>