legendary-doc-site/apps/app/priv/templates/phx.gen.html/show.html.eex

14 lines
443 B
Elixir
Raw Normal View History

2020-07-29 17:07:36 +00:00
<h1>Show <%= schema.human_singular %></h1>
<ul>
<%= for {k, _} <- schema.attrs do %>
<li>
<strong><%= Phoenix.Naming.humanize(Atom.to_string(k)) %>:</strong>
<%%= @<%= schema.singular %>.<%= k %> %>
</li>
<% end %>
</ul>
<span><%%= link "Edit", to: Routes.<%= schema.route_helper %>_path(@conn, :edit, @<%= schema.singular %>) %></span>
<span><%%= link "Back", to: Routes.<%= schema.route_helper %>_path(@conn, :index) %></span>