<div>
  <h2><%= @title %></h2>

  <.form
    let={f}
    for={@changeset}
    id="thread-form"
    phx-target={@myself}
    phx-change="validate"
    phx-submit="save">
  
    <%= label f, :title %>
    <%= text_input f, :title %>
    <%= error_tag f, :title %>
  
    <%= label f, :thread_id %>
    <%= number_input f, :thread_id %>
    <%= error_tag f, :thread_id %>
  
    <div>
      <%= submit "Save", phx_disable_with: "Saving..." %>
    </div>
  </.form>
</div>