%= form_with model: [:admin, airport], class: "card card-body space-y-4 max-w-2xl" do |f| %>
<%= f.errors_summary %>
<%= f.field :ident, label: t(".code"), required: true, hint: t(".the_code_you_log_e") %>
<%= f.field :name, required: true, wrapper: { class: "sm:col-span-2" } %>
<%= f.field :kind, as: :select, label: t(".type"), collection: Airport::KINDS.map { [_1.humanize, _1] } %>
<%= f.field :municipality, label: t(".town") %>
<%= f.field :region, placeholder: t(".us_ri"), hint: t(".iso_region") %>
<%= f.field :latitude, as: :number, step: "any" %>
<%= f.field :longitude, as: :number, step: "any" %>
<%= f.field :elevation_ft, as: :number, label: t(".elevation_ft") %>
<%= t(".custom_airports_are_kept_when") %>
<%= f.submit t(".save") %><%= link_to t(".cancel"), admin_airports_path, class: "btn-secondary" %>
<% end %>
<% if airport.persisted? %><%= delete_button t(".remove", ident: airport.ident), admin_airport_path(airport) %>
<% end %>