Current section

Files

Jump to
mandarin priv templates mandarin.gen.html new.html.eex
Raw

priv/templates/mandarin.gen.html/new.html.eex

<h1>
<%%= dgettext("mandarin.<%= context.basename %>", "New <%= schema.human_singular %>") %>
</h1>
<%%= render "form.html", Map.put(assigns, :action, Routes.<%= context.basename %>_<%= schema.route_helper %>_path(@conn, :create)) %>
<%% back_link_content = [content_tag(:i, "", class: "fas fa-arrow-left"), dgettext("mandarin.<%= context.basename %>", " Back")] %>
<%%# Copy the functionality of the back button exactly %>
<span><button onclick="window.history.back()" class="btn btn-block btn-primary"><%%= back_link_content %></button></span>