2025-04-16 10:03:13 -03:00

16 lines
601 B
Plaintext

<.header>
<%= schema.human_singular %> {@<%= schema.singular %>.id}
<:subtitle>This is a <%= schema.singular %> record from your database.</:subtitle>
<:actions>
<.link href={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}/edit"}>
<.button>Edit <%= schema.singular %></.button>
</.link>
</:actions>
</.header>
<.list><%= for {k, _} <- schema.attrs do %>
<:item title="<%= Phoenix.Naming.humanize(Atom.to_string(k)) %>">{@<%= schema.singular %>.<%= k %>}</:item><% end %>
</.list>
<.back navigate={~p"<%= schema.route_prefix %>"}>Back to <%= schema.plural %></.back>