{% extends 'base.html' %} {% block title %}Historial — {{ vessel.name }}{% endblock %} {% block page_title %}{{ vessel.name }}{% endblock %} {% block topbar_actions %} + Nueva Orden ✏️ Editar ← Volver {% endblock %} {% block content %}
| Orden | Fecha | Sistema | Scope | Técnico | Horas | Costo | Estado | |
|---|---|---|---|---|---|---|---|---|
| {{ o.order_number }} | {{ o.start_date or o.created_at[:10] }} | {{ o.system_name or '—' }} |
{{ o.scope or '—' }}
{% if o.description and o.scope and o.description != o.scope %}
{{ o.description[:80] }}{% if o.description|length > 80 %}...{% endif %}
{% endif %}
|
{{ o.technician or '—' }} | {{ o.labor_hours or 0 }} h | ${{ "%.0f"|format((o.calc_labor_cost or 0) + (o.total_parts_cost or 0)) }} | {{ o.status.replace('_',' ') }} | Ver {% if o.status != 'completed' %} ✏️ {% endif %} 📄 |
Sin equipos. Agrega motores, generadores, etc.
{% endif %}| Título | Tipo | Equipo | Tamaño | Fecha | |
|---|---|---|---|---|---|
|
{% if d.filename.endswith('.pdf') %}📄
{% elif d.filename.endswith(('.doc','docx')) %}📝
{% elif d.filename.endswith(('.xls','xlsx')) %}📊
{% elif d.filename.endswith(('.jpg','jpeg','png','gif')) %}🖼️
{% else %}📎{% endif %}
{{ d.title }}
{% if d.description %} {{ d.description }}{% endif %} |
{{ d.doc_type }} | {{ d.equipment_name or '—' }} | {% if d.file_size %}{{ "%.1f"|format(d.file_size/1024) }} KB{% else %}—{% endif %} | {{ d.created_at[:10] }} | ⬇️ |
Sin documentos adjuntos.
{% endif %}