<% content_for :title, t(".import_flights") %> <%= render "shared/aircraft_header", aircraft: @aircraft %>
<%= form_with url: aircraft_flight_import_path(@aircraft), multipart: true, class: "card card-body space-y-4 lg:col-span-2" do |f| %>

<%= t(".import_flights_from_a_spreadsheet") %>

<%= f.label :file, t(".spreadsheet_xlsx_or_csv"), class: "label" %> <%= f.file_field :file, accept: ".xlsx,.csv", required: true, class: "block text-sm text-slate-600 file:mr-3 file:rounded-md file:border-0 file:bg-slate-100 file:px-3 file:py-1.5 file:text-sm file:font-medium hover:file:bg-slate-200" %>
<%= f.label :starting_tach, t(".tach_before_the_first_flight"), class: "label" %> <%= f.number_field :starting_tach, step: 0.1, class: "input" %>

<%= t(".e_g_the_tach_at") %>

<%= f.label :starting_hobbs, t(".hobbs_before_the_first_flight"), class: "label" %> <%= f.number_field :starting_hobbs, step: 0.1, class: "input" %>
<%= f.submit t(".upload_preview"), class: "btn-primary" %>

<%= t(".nothing_is_saved_until_you") %>

<% end %>

<%= t(".expected_layout") %>

<%= t(".one_row_per_flight_with_html") %>

<%= t(".each_flight_s_time_is") %>

<%= t(".importing_records_history_only_it") %>