mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 15:50:36 -05:00
- Admin → Recordkeeping Procedures: generated procedures document (2.2.11 / 3.2.8) from the system setup plus owner-entered details; adopted as numbered, immutable revisions; included in the records package - Admin → Records Audits: periodic QC checklist (3.2.8.5) combining app checks with a restore test, sampled entries vs. source documents and a user review; next due date on About and in admins' weekly reminder - User instructions at /help/records, linked from the logbook and signing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.7 KiB
ERB
25 lines
1.7 KiB
ERB
<p>Here's what needs attention<%= " on your aircraft" if @items.any? %>.</p>
|
|
<% @items.each do |aircraft, issues, alerts| %>
|
|
<h3 style="margin: 16px 0 4px;"><%= link_to aircraft.tail_number, aircraft_url(aircraft) %> <span style="font-weight: normal; color: #64748b;"><%= aircraft.airworthiness.label %></span></h3>
|
|
<ul style="margin: 0; padding-left: 20px;">
|
|
<% issues.each do |issue| %>
|
|
<li><strong><%= { "RED" => "Overdue", "LIMITED" => "Overdue", "ORANGE" => "Due soon", "INFO" => "Deferred" }[issue.severity] %>:</strong>
|
|
<%= issue.title %> <span style="color: #64748b;"><%= issue.description %></span></li>
|
|
<% end %>
|
|
</ul>
|
|
<% if alerts.any? %>
|
|
<p style="margin: 8px 0 0;"><strong><%= alerts.size %> newly published <%= "AD".pluralize(alerts.size) %> may apply:</strong>
|
|
<%= alerts.map { _1.ad_number || _1.fr_document_number }.to_sentence %>. <%= link_to "Review them", aircraft_airworthiness_directives_url(aircraft, anchor: "new-ads") %>.</p>
|
|
<% end %>
|
|
<% end %>
|
|
<% if @certificates.any? %>
|
|
<h3 style="margin: 16px 0 4px;">Your certificates</h3>
|
|
<ul style="margin: 0; padding-left: 20px;">
|
|
<% @certificates.each do |c| %><li><strong><%= c.expired? ? "Expired" : "Expires" %> <%= c.expires_on %>:</strong> <%= c.kind_label %> <%= c.number %></li><% end %>
|
|
</ul>
|
|
<% end %>
|
|
<% if @audit_due %><p><strong>Records audit due <%= @audit_due %></strong> (AC 120-78B quality control): <%= link_to "start it", new_admin_audit_url %>.</p><% end %>
|
|
<p style="color: #64748b; font-size: 12px; margin-top: 20px;">
|
|
Based on the records in Simple Aircraft Manager. Turn these emails off on your <%= link_to "profile", edit_profile_url %>.
|
|
</p>
|