From f5cd5a233f1f2686a8070e3b3b3a01766c5997d5 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 25 Jun 2026 19:50:51 -0500 Subject: [PATCH] Automation: replace confirm() with validation modal before sending Show a modal with full summary (pacientes, recepciones, examenes, patient list with RDA count) and a warning before the actual API call. Requires explicit "Confirmar y enviar" click. Co-Authored-By: Claude Sonnet 4.6 --- app/templates/automation.html | 122 ++++++++++++++++++++++++++-------- 1 file changed, 94 insertions(+), 28 deletions(-) diff --git a/app/templates/automation.html b/app/templates/automation.html index 21018c5..71e5e0e 100644 --- a/app/templates/automation.html +++ b/app/templates/automation.html @@ -26,7 +26,7 @@ class="px-6 py-2 bg-gray-600 hover:bg-gray-700 text-white font-medium rounded-lg transition-colors flex items-center gap-2 whitespace-nowrap"> Vista previa - + + +
+

+ Se enviará la siguiente información a TNS (api.tns.co) para la fecha + : +

+ +
+
+ +
Terceros
+
Tercero/Crear
+
+
+ +
Recepciones
+
RdaPaciente/Insertar
+
+
+ +
Exámenes
+
detallePedido
+
+
+ +
+ + Esta acción enviará datos reales a TNS. Los registros que ya existan serán actualizados. No se puede deshacer. +
+ + +
+ +
+ + +