<%= @title %>
<.form
let={f}
for={@changeset}
id="post-form"
phx-target={@myself}
phx-change="validate"
phx-submit="save">
<%= label f, :title %>
<%= text_input f, :title, class: "form-control" %>
<%= error_tag f, :title %>
<%= label f, :body %>
<%= textarea f, :body, class: "form-control" %>
<%= error_tag f, :body %>
<%= submit "Save", phx_disable_with: "Saving...", class: "btn btn-primary" %>