{{ truck.name }}
{{ truck.engine_model or "Motor não informado" }} · Odômetro: {{ "%.0f"|format(truck.odometer_miles) if truck.odometer_miles is not none else "—" }} mi · Horas: {{ "%.0f"|format(truck.engine_hours) if truck.engine_hours is not none else "—" }} h
Status por item de manutenção
| Item | Status | Restante | Última manutenção |
|---|---|---|---|
| {{ row.item.name }} | {% if row.status == "ok" %}OK {% elif row.status == "vencendo" %}Vencendo {% elif row.status == "vencido" %}Vencido {% elif row.status == "sem_registro" %}Sem registro {% else %}Sem config.{% endif %} | {% if row.remaining_miles is not none %}{{ "%.0f"|format(row.remaining_miles) }} mi{% endif %} {% if row.remaining_hours is not none %} · {{ "%.0f"|format(row.remaining_hours) }} h{% endif %} {% if row.remaining_days is not none %} · {{ row.remaining_days }} dias{% endif %} {% if row.remaining_miles is none and row.remaining_hours is none and row.remaining_days is none %}—{% endif %} | {% if row.last_record %}{{ row.last_record.service_date.strftime("%d/%m/%Y") }} ({{ "%.0f"|format(row.last_record.mileage_at_service) if row.last_record.mileage_at_service else "—" }} mi) {% else %}nunca{% endif %} |
Registrar manutenção realizada
Histórico
| Data | Item | Odômetro | Obs. |
|---|---|---|---|
| {{ record.service_date.strftime("%d/%m/%Y") }} | {{ record.item.name }} | {{ "%.0f"|format(record.mileage_at_service) if record.mileage_at_service else "—" }} mi | {{ record.notes or "" }} |
Nenhuma manutenção registrada ainda.
{% endif %}