<.header>
  <%= @item.title %>
  <:subtitle>This is a item record from your database.</:subtitle>
</.header>

<.simple_form for={@form} id="item-form" phx-change="validate" phx-submit="save">
  <.input field={@form[:title]} type="text" label="Title" />
  <.input field={@form[:description]} type="text" label="Description" />
  <.input field={@form[:price]} type="number" min="0" step="any" label="Price" />
  <.input field={@form[:url]} type="text" label="Url" />
  <.input field={@form[:image_url]} type="text" label="Image URL" />
  <.input field={@form[:desire]} type="number" label="Desire" />
  <.input field={@form[:visible]} type="checkbox" label="Visible?" />
  <:actions>
    <.button phx-disable-with="Saving...">Save Item</.button>
  </:actions>
</.simple_form>

<.back navigate={~p"/items"}>Back to items</.back>
