<% content_for :title, t(".print_logbook_entries") %> <%= render "shared/aircraft_header", aircraft: @aircraft %> <%= form_with url: aircraft_logbook_print_path(@aircraft, format: :pdf), method: :get, class: "card card-body max-w-2xl space-y-4", data: { turbo: false }, html: { target: "_blank" } do %>

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

<%= t(".a_pdf_of_to_print_html", entry: (t("counts.entry", count: @entries.size)), tail_number: @aircraft.tail_number) %>

<% @entries.each do |e| %><%= hidden_field_tag "ids[]", e.id, id: nil %><% end %>
<%= t(".paper") %> <% LogbookEntryPdf::LAYOUTS.each do |l| %> <% end %>
<%= label_tag :start_at, t(".start_at_label"), class: "label" %> <%= number_field_tag :start_at, 1, min: 1, max: 10, class: "input w-24" %>

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

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

<%= submit_tag t(".open_pdf"), class: "btn-primary" %><%= link_to t(".back"), aircraft_logbook_entries_path(@aircraft), class: "btn-secondary" %>
<% end %>