Listing Contexts

<%= if @live_action in [:new, :edit] do %> <.modal return_to={Routes.context_index_path(@socket, :index)}> <.live_component module={MemexWeb.ContextLive.FormComponent} id={@context.id || :new} title={@page_title} action={@live_action} context={@context} return_to={Routes.context_index_path(@socket, :index)} /> <% end %> <%= for context <- @contexts do %> <% end %>
Title Content Tag Visibility
<%= context.title %> <%= context.content %> <%= context.tag %> <%= context.visibility %> <%= live_redirect("Show", to: Routes.context_show_path(@socket, :show, context)) %> <%= live_patch("Edit", to: Routes.context_index_path(@socket, :edit, context)) %> <%= link("Delete", to: "#", phx_click: "delete", phx_value_id: context.id, data: [confirm: "Are you sure?"] ) %>
<%= live_patch("New Context", to: Routes.context_index_path(@socket, :new)) %>