.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 %>}>