Listing Notes

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