{% extends 'base.html' %} {% block title %}Órdenes de Trabajo{% endblock %} {% block page_title %}Órdenes de Trabajo{% endblock %} {% block topbar_actions %} + Nueva Orden {% endblock %} {% block head %} {% endblock %} {% block content %}
Todas Abiertas En Progreso Completadas
{% for o in orders %} {% else %} {% endfor %}
Orden🚢 EmbarcaciónTipoScopeTécnicoFechaEstado
{{ o.order_number }} {{ o.vessel_name }} {{ o.work_type or '—' }} {{ o.scope or (o.description[:60] if o.description else '—') }} {{ o.technician or '—' }} {{ o.start_date or o.created_at[:10] }} {{ o.status.replace('_',' ') }} Ver {% if o.status != 'completed' %} ✏️ {% endif %}
No hay órdenes.
{% for o in orders %}
{{ o.order_number }} {{ o.status.replace('_',' ') }}
{{ o.scope or (o.description[:100] if o.description else 'Sin descripción') }}
{% if o.work_type %}🔧 {{ o.work_type }}{% endif %} {% if o.technician %}👤 {{ o.technician }}{% endif %} 📅 {{ o.start_date or o.created_at[:10] }} {% if o.billing_type == 'lump_sum' %}💰 Todo costo {% elif o.billing_type == 'labor_only' %}🔧 Solo M.O. {% else %}📋 M.O.+Mat.{% endif %}
Ver detalle {% if o.status != 'completed' %} ✏️ Editar {% endif %}
{% else %}
No hay órdenes.
{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}