2020-09-08 14:20:48 +00:00
|
|
|
<div class="p-6 mx-auto max-w-2xl">
|
|
|
|
<div class="flex pb-6">
|
|
|
|
<div class="w-/12 flex-1 text-4xl">
|
|
|
|
<h1 class="-mb-2 mt-2"><%= schema.human_singular %></h1>
|
|
|
|
</div>
|
|
|
|
<div class="w-/12 text-4xl text-right">
|
|
|
|
<%%= styled_button_link "Edit", to: Routes.<%= schema.route_helper %>_path(@conn, :edit, @<%= schema.singular %>) %>
|
|
|
|
<%%= styled_button_link "Back", to: Routes.<%= schema.route_helper %>_path(@conn, :index) %>
|
2020-07-30 16:05:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-29 17:07:36 +00:00
|
|
|
|
2020-09-11 21:09:22 +00:00
|
|
|
<div class="bg-white shadow rounded px-4 py-6 bg-white">
|
|
|
|
<%= for {k, _} <- schema.attrs do %>
|
|
|
|
<div>
|
|
|
|
<strong><%= Phoenix.Naming.humanize(Atom.to_string(k)) %>:</strong>
|
|
|
|
<%%= @<%= schema.singular %>.<%= k %> %>
|
2020-09-08 14:20:48 +00:00
|
|
|
</div>
|
2020-09-11 21:09:22 +00:00
|
|
|
<% end %>
|
2020-07-30 16:05:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|