<div> <h2><%= @title %></h2> <.form let={f} for={@changeset} id="board-form" phx-target={@myself} phx-change="validate" phx-submit="save"> <%= label f, :name %> <%= text_input f, :name %> <%= error_tag f, :name %> <%= label f, :stories %> <%= multiple_select f, :stories, ["Option 1": "option1", "Option 2": "option2"] %> <%= error_tag f, :stories %> <div> <%= submit "Save", phx_disable_with: "Saving..." %> </div> </.form> </div>