%= turbo_frame_tag "pokedex_entries" do %>
<%= form_with model: [@run, @pokedex_entry], class: "space-y-4" do |form| %>
<%= form.label :pokemon_id %>
<%= form.collection_select :pokemon_id, Pokemon.order(:pokedex_num), :id,
->(pokemon) { "#{pokemon.pokedex_num} - #{pokemon.name}" }, prompt: "Choose...",
required: true %>
<%= form.label :recorded_at %>
<%= form.datetime_local_field :recorded_at, value: Time.zone.now, required: true %>
<%= form.label :shiny %>
<%= form.check_box :shiny %>
<%= form.submit "Got 'em!", class: "btn btn-primary" %>
<%= link_to "Cancel", run_pokedex_entries_path %>
<% end %>
<% end %>