% content_for :title, @component.to_s %> <%= render "shared/aircraft_header", aircraft: @aircraft %>
<%= t(".resets_hours_since_overhaul_to_html") %>
<%= f.submit t(".record_service"), class: "btn-primary" %> <% end %>| <%= t(".inspection_2") %> | <%= t(".interval") %> | <%= t(".last_done") %> | <%= t(".next_due") %> | <%= t(".status") %> |
|---|---|---|---|---|
| <%= row.type.name %><%= tag.span(t(".advisory"), class: "text-xs text-slate-500") if row.type.advisory? %> | <%= row.type.interval_description %> | <%= row.latest ? "#{fmt_date(row.latest.date)} @ #{hours(row.latest.hours_at_inspection)} h" : "—" %> | <%= [row.next_due_date&.to_s, row.next_due_hours && "#{hours(row.next_due_hours)} h"].compact.join(" / ").presence || "—" %> | <%= compliance_badge(row.status) %> |
<%= t(".none_add_one_for_a") %>
<% end %>