<%# Everything a signature covers, as the signer reviews it (AC 120-78B 2.2.4). %>
<%= t(".aircraft") %>
<%= entry.aircraft.tail_number %> <%= [ entry.aircraft.make, entry.aircraft.model ].compact_blank.join(" ") %><%= " · S/N #{entry.aircraft.serial_number}" if entry.aircraft.serial_number.present? %>
<%= t(".date") %>
<%= fmt_date(entry.date) %>
<%= t(".logbook") %>
<%= LogbookEntry::LOG_TYPES[entry.log_type] %> · <%= LogbookEntry::ENTRY_TYPES[entry.entry_type] %>
<%= t(".airframe_total_time") %>
<%= hours(entry.aircraft_hours_at_entry) %> (<%= entry.aircraft.time_basis %>)
<% if (c = entry.component) %>
<%= c.component_type&.name %>
<%= t(".total_html", manufacturer: c.manufacturer, model: c.model, present: (" · S/N #{c.serial_number}" if c.serial_number.present?), component_hours_at_entry: (hours(entry.component_hours_at_entry)), component_since_overhaul_at_entry: (hours(entry.component_since_overhaul_at_entry)), since_overhaul_abbreviation: c.since_overhaul_abbreviation) %>
<% end %> <% entry.parts.each do |part| %>
<%= part.component.component_type&.name %>
<%= t(".total_2_html", manufacturer: part.component.manufacturer, model: part.component.model, present: (" · S/N #{part.component.serial_number}" if part.component.serial_number.present?), hours_at_entry: (hours(part.hours_at_entry)), since_overhaul_at_entry: (hours(part.since_overhaul_at_entry)), since_overhaul_abbreviation: part.component.since_overhaul_abbreviation.downcase) %>
<% end %> <% if entry.inspection_result %>
<%= t(".result") %>
<%= entry.inspection_result_label %>
<% end %> <% if entry.signoff_location.present? %>
<%= t(".location") %>
<%= entry.signoff_location %>
<% end %> <% if entry.supersedes %>
<%= t(".corrects") %>
<%= t(".the_entry_html", date: (fmt_date(entry.supersedes.date))) %>
<% end %>
<%= entry.text %>