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 %}
{% endif %}{% endif %} {% endcall %} @@ -150,7 +150,7 @@ {% if historial_participaciones | length > participaciones | length %}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 %}
{{ e.descripcion }}
{% if e.adjunto %}⬇ {{ e.adjunto.split("#")[0].split("/")[-1] }} sha256 {{ e.adjunto.split("#sha256=")[-1][:12] }}…
{% endif %}{{ 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 %}
{{ 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] }}…