Packages

A way to increase Elixir projects readability and maintenance based on Use Cases and Interactors.

Current section

Files

Jump to
use_case priv templates use_case.gen.phx_resource_html show.html.eex
Raw

priv/templates/use_case.gen.phx_resource_html/show.html.eex

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