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

20 lines
707 B
Elixir
Raw Normal View History

2020-07-30 16:05:09 +00:00
<div class="ui top padded container">
<div class="ui grid">
<div class="row">
<div class="eight wide column">
<h1 class="ui header">Edit <%= schema.human_singular %></h1>
</div>
<div class="eight wide right aligned column">
<span><%%= link "Back", to: Routes.<%= schema.route_helper %>_path(@conn, :index), class: "ui button" %></span>
</div>
</div>
2020-07-29 17:07:36 +00:00
2020-07-30 16:05:09 +00:00
<div class="centered row">
<div class="center aligned column">
<%%= changeset_error_block(@changeset) %>
<%%= render "form.html", Map.put(assigns, :action, Routes.<%= schema.route_helper %>_path(@conn, :update, @<%= schema.singular %>)) %>
</div>
</div>
</div>
</div>