diff --git a/app/templates/alertas/detalle.html b/app/templates/alertas/detalle.html index a1daad0..79aa5fe 100644 --- a/app/templates/alertas/detalle.html +++ b/app/templates/alertas/detalle.html @@ -85,7 +85,7 @@ {% call tarjeta("Historial", subtitulo="Reconstruido desde el audit trail") %} {% set columnas = [{"clave": "fecha", "titulo": "Fecha"}, {"clave": "accion", "titulo": "Acción"}, {"clave": "usuario", "titulo": "Usuario"}, {"clave": "cambio", "titulo": "Cambio"}, {"clave": "motivo", "titulo": "Motivo"}] %} {% call(fila, col) tabla(columnas, historial, vacio="Sin eventos.") %} - {% if col.clave == "fecha" %}{{ fila.fecha.strftime("%d/%m/%Y %H:%M") }} + {% if col.clave == "fecha" %}{{ fila.fecha | mx("%d/%m/%Y %H:%M") }} {% elif col.clave == "cambio" %}{% if fila.antes %}{{ fila.antes.estado or fila.antes.responsable or "" }} → {% endif %}{{ (fila.despues or {}).get("estado") or (fila.despues or {}).get("responsable") or (fila.despues or {}).get("regla") or "" }} {% else %}{{ fila[col.clave] or "—" }}{% endif %} {% endcall %} diff --git a/app/templates/beneficiario/cliente.html b/app/templates/beneficiario/cliente.html index bce8f93..85957f7 100644 --- a/app/templates/beneficiario/cliente.html +++ b/app/templates/beneficiario/cliente.html @@ -42,7 +42,7 @@ {% if calculo.error %}{{ aviso_en_linea(calculo.error, tono="peligro") }}{% endif %} {# ---------------------------------------------------------------- Resultado #} -{% call tarjeta("Resultado vigente", subtitulo=("Criterio " ~ vigentes[0].criterio ~ " · vigente desde " ~ vigentes[0].valid_from.strftime("%d/%m/%Y %H:%M")) if vigentes else "Sin beneficiario registrado") %} +{% call tarjeta("Resultado vigente", subtitulo=("Criterio " ~ vigentes[0].criterio ~ " · vigente desde " ~ vigentes[0].valid_from | mx("%d/%m/%Y %H:%M")) if vigentes else "Sin beneficiario registrado") %} {% if puede_editar %}
@@ -82,7 +82,7 @@ {% if historial | length > vigentes | length %}
Historial de versiones ({{ historial | length }})
{% endif %} @@ -104,7 +104,7 @@ {% elif col.clave == "tipo" %}{{ badge(fila.tipo, "info" if fila.tipo == "capital" else "acento") }} {% elif col.clave == "porcentaje" %}{{ fila.porcentaje }} % {% elif col.clave == "documento" %}{% if fila.documento_id %}doc #{{ fila.documento_id }}{% else %}sin documento{% endif %} - {% elif col.clave == "desde" %}{{ fila.valid_from.strftime("%d/%m/%Y %H:%M") }} + {% elif col.clave == "desde" %}{{ fila.valid_from | mx("%d/%m/%Y %H:%M") }} {% else %}{% if puede_editar %}
{% endif %}{% endif %} {% endcall %} @@ -150,7 +150,7 @@ {% if historial_participaciones | length > participaciones | length %}
Historial de participaciones ({{ historial_participaciones | length }})
{% endif %} diff --git a/app/templates/beneficiario/index.html b/app/templates/beneficiario/index.html index 11542a1..d2f53c1 100644 --- a/app/templates/beneficiario/index.html +++ b/app/templates/beneficiario/index.html @@ -19,7 +19,7 @@ {% elif col.clave == "criterio" %}{% if fila.beneficiarios %}{{ badge(fila.beneficiarios[0].fila.criterio | replace("_", " "), "acento") }}{% else %}{{ badge("Sin calcular") }}{% endif %} {% elif col.clave == "beneficiarios" %} {% for b in fila.beneficiarios %}{{ b.nombre or ("#" ~ b.fila.persona_fisica_id) }}{% if b.fila.porcentaje_calculado is not none %} · {{ b.fila.porcentaje_calculado }} %{% endif %}{% if not loop.last %}
{% endif %}{% else %}—{% endfor %} - {% elif col.clave == "desde" %}{% if fila.beneficiarios %}{{ fila.beneficiarios[0].fila.valid_from.strftime("%d/%m/%Y %H:%M") }}{% else %}—{% endif %} + {% elif col.clave == "desde" %}{% if fila.beneficiarios %}{{ fila.beneficiarios[0].fila.valid_from | mx("%d/%m/%Y %H:%M") }}{% else %}—{% endif %} {% else %}Grafo y participaciones{% endif %} {% endcall %} {% endcall %} diff --git a/app/templates/casos/detalle.html b/app/templates/casos/detalle.html index 5bd8d12..1a7be64 100644 --- a/app/templates/casos/detalle.html +++ b/app/templates/casos/detalle.html @@ -10,7 +10,7 @@

← Casos

Caso #{{ caso.id }} {{ badge(caso.estado | replace("_", " ") | capitalize, {"abierto": "info", "en_investigacion": "aviso", "escalado": "acento", "cerrado": "neutro"}[caso.estado]) }}

-

Cliente {% if cliente %}{{ cliente.id_externo }}{% else %}—{% endif %} · responsable: {{ caso.responsable or "sin asignar" }} · abierto el {{ caso.created_at.strftime("%d/%m/%Y") }}{% if caso.decision %} · decisión: {{ decisiones[caso.decision] }}{% endif %}

+

Cliente {% if cliente %}{{ cliente.id_externo }}{% else %}—{% endif %} · responsable: {{ caso.responsable or "sin asignar" }} · abierto el {{ caso.created_at | mx("%d/%m/%Y") }}{% if caso.decision %} · decisión: {{ decisiones[caso.decision] }}{% endif %}

{% if aviso %}{% endif %} @@ -36,7 +36,7 @@
    {% for e in eventos %}
  1. -
    {{ e.fecha.strftime("%d/%m/%Y %H:%M") }} · {{ badge(e.tipo | replace("_", " ") | capitalize) }} · {{ e.usuario }}
    +
    {{ e.fecha | mx("%d/%m/%Y %H:%M") }} · {{ badge(e.tipo | replace("_", " ") | capitalize) }} · {{ e.usuario }}

    {{ e.descripcion }}

    {% if e.adjunto %}

    ⬇ {{ e.adjunto.split("#")[0].split("/")[-1] }} sha256 {{ e.adjunto.split("#sha256=")[-1][:12] }}…

    {% endif %}
  2. diff --git a/app/templates/casos/lista.html b/app/templates/casos/lista.html index 2c7e108..07b7d80 100644 --- a/app/templates/casos/lista.html +++ b/app/templates/casos/lista.html @@ -40,7 +40,7 @@ {% elif col.clave == "cliente" %}{% if fila.cliente_id %}{{ fila.cliente }}{% else %}—{% endif %} {% elif col.clave == "claves" %}{{ fila.alertas }} · {{ fila.claves | join(", ") }} {% elif col.clave == "estado" %}{{ badge(fila.estado | replace("_", " ") | capitalize, {"abierto": "info", "en_investigacion": "aviso", "escalado": "acento", "cerrado": "neutro"}[fila.estado]) }} - {% elif col.clave == "created_at" %}{{ fila.created_at.strftime("%d/%m/%Y") }} + {% elif col.clave == "created_at" %}{{ fila.created_at | mx("%d/%m/%Y") }} {% elif col.clave == "decision" %}{{ fila.decision | replace("_", " ") | capitalize if fila.decision else "—" }} {% else %}{{ fila[col.clave] or "—" }}{% endif %} {% endcall %} diff --git a/app/templates/clientes/ficha.html b/app/templates/clientes/ficha.html index 0298324..09344f3 100644 --- a/app/templates/clientes/ficha.html +++ b/app/templates/clientes/ficha.html @@ -65,7 +65,7 @@ {% endif %} {# ---------------------------------------------------------------- Identificación #} -{% call tarjeta("Identificación", subtitulo=("Versión " ~ identificacion.version ~ " · vigente desde " ~ identificacion.valid_from.strftime("%d/%m/%Y %H:%M")) if identificacion else "Campos del Caso de Estudio") %} +{% call tarjeta("Identificación", subtitulo=("Versión " ~ identificacion.version ~ " · vigente desde " ~ identificacion.valid_from | mx("%d/%m/%Y %H:%M")) if identificacion else "Campos del Caso de Estudio") %} {% if puede_editar %}
    {% if identificacion and identificacion.fuente == "captura" %}Actualizar (versión nueva){% else %}Capturar datos de identificación{% endif %} diff --git a/app/templates/operaciones/cargas.html b/app/templates/operaciones/cargas.html index a0266e2..e7c8de9 100644 --- a/app/templates/operaciones/cargas.html +++ b/app/templates/operaciones/cargas.html @@ -92,7 +92,7 @@ {% call(lote, col) tabla(columnas, historial, vacio="Todavía no hay cargas incrementales.") %} {% set d = lote.filas or {} %} {% if col.clave == "id" %}{{ lote.id }} - {% elif col.clave == "fecha" %}{{ lote.created_at.strftime("%d/%m/%Y %H:%M") }} + {% elif col.clave == "fecha" %}{{ lote.created_at | mx("%d/%m/%Y %H:%M") }} {% elif col.clave == "archivo" %}{{ d.get("archivo", "—") }} {% elif col.clave == "estado" %}{{ badge("Confirmada", "exito") if d.get("estado") == "confirmada" else badge("Rechazada", "peligro") }} {% elif col.clave == "filas" %}{{ d.get("transacciones_cargadas", 0) }}{% if d.get("creditos_cargados") %} + {{ d.creditos_cargados }} créditos{% endif %} diff --git a/app/templates/operaciones/lote.html b/app/templates/operaciones/lote.html index 3104edc..da6351c 100644 --- a/app/templates/operaciones/lote.html +++ b/app/templates/operaciones/lote.html @@ -12,7 +12,7 @@

    ← Cargas incrementales

    Carga {{ lote.id }} {{ badge("Confirmada", "exito") if datos.get("estado") == "confirmada" else badge("Rechazada", "peligro") }}

    -

    {{ datos.get("archivo", "—") }} · {{ lote.created_at.strftime("%d/%m/%Y %H:%M") }} · {{ lote.usuario }} · SHA-256 {{ lote.archivo_hash[:16] }}…

    +

    {{ datos.get("archivo", "—") }} · {{ lote.created_at | mx("%d/%m/%Y %H:%M") }} · {{ lote.usuario }} · SHA-256 {{ lote.archivo_hash[:16] }}…

    {{ pestanas("cargas") }}