Listing <%= schema.human_plural %>

<%%= if @live_action in [:new, :edit] do %> <.modal return_to={Routes.<%= schema.route_helper %>_index_path(@socket, :index)}> <.live_component module={<%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>Live.FormComponent} id={@<%= schema.singular %>.id || :new} title={@page_title} action={@live_action} <%= schema.singular %>={@<%= schema.singular %>} return_to={Routes.<%= schema.route_helper %>_index_path(@socket, :index)} /> <%% end %> <%= for {k, _} <- schema.attrs do %> <% end %> <%%= for <%= schema.singular %> <- @<%= schema.collection %> do %> -#{<%= schema.singular %>.id}"}> <%= for {k, _} <- schema.attrs do %> <% end %> <%% end %>
<%= Phoenix.Naming.humanize(Atom.to_string(k)) %>
<%%= <%= schema.singular %>.<%= k %> %> <%%= live_redirect "Show", to: Routes.<%= schema.route_helper %>_show_path(@socket, :show, <%= schema.singular %>) %> <%%= live_patch "Edit", to: Routes.<%= schema.route_helper %>_index_path(@socket, :edit, <%= schema.singular %>) %> <%%= link "Delete", to: "#", phx_click: "delete", phx_value_id: <%= schema.singular %>.id, data: [confirm: "Are you sure?"] %>
<%%= live_patch "New <%= schema.human_singular %>", to: Routes.<%= schema.route_helper %>_index_path(@socket, :new) %>