{% extends "base.html" %} {% block title %}{{ truck.name }} — Frota Trucks{% endblock %} {% block body %}
Frota Trucks{% set h = header_info() %}{% if h.company %} · {{ h.company }}{% endif %}{% if h.machine_id %} · Cód: {{ h.machine_id }}{% endif %}

← Voltar ao painel

{{ 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

{% for row in rows %} {% endfor %}
ItemStatusRestanteÚ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

{% for record in history %} {% endfor %}
DataItemOdômetroObs.
{{ 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 "" }}
{% if not history %}

Nenhuma manutenção registrada ainda.

{% endif %}
{% endblock %}