Current section

Files

Jump to
plato lib plato web controllers schema_html create.html.heex
Raw

lib/plato/web/controllers/schema_html/create.html.heex

<div >
<h1><%= @schema_name %> Created Successfully!</h1>
<p>Entry #<%= @content.id %> has been saved to the database.</p>
</div>
<h2>Saved Data</h2>
<div >
<%= for {key, value} <- @content.data do %>
<div >
<span ><%= key %>:</span>
<%= value %>
</div>
<% end %>
</div>
<div style="margin-top: 30px;">
<a href={"#{@base_path}/#{@schema_name}"} class="back-link">← Back to <%= @schema_name %></a>
<a href={"#{@base_path}/#{@schema_name}/list"} class="button">View All Entries</a>
<a href={"#{@base_path}/#{@schema_name}/new"} class="button">Create Another</a>
</div>