<.header> Listing <%= schema.human_plural %> <:actions> <.link href={~p"<%= schema.route_prefix %>/new"}> <.button>New <%= schema.human_singular %> <.table id="<%= schema.plural %>" rows={@<%= schema.collection %>} row_click={&JS.navigate(~p"<%= schema.route_prefix %>/#{&1}")}><%= for {k, _} <- schema.attrs do %> <:col :let={<%= schema.singular %>} label="<%= Phoenix.Naming.humanize(Atom.to_string(k)) %>">{<%= schema.singular %>.<%= k %>}<% end %> <:action :let={<%= schema.singular %>}>
<.link navigate={~p"<%= schema.route_prefix %>/#{<%= schema.singular %>}"}>Show
<.link navigate={~p"<%= schema.route_prefix %>/#{<%= schema.singular %>}/edit"}>Edit <:action :let={<%= schema.singular %>}> <.link href={~p"<%= schema.route_prefix %>/#{<%= schema.singular %>}"} method="delete" data-confirm="Are you sure?"> Delete