diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index f86cb06..6f66022 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -482,6 +482,7 @@ function esc2(mixed $v): string { $_renderedFirmaProfesional = false; $_renderedFirmaPaciente = false; $_esquemaTieneFirmaPaciente = false; + $_esquemaTieneFirmaAlguna = false; // true si hay cualquier campo firma/firma_profesional $_firmaGlobalPacienteUsada = false; // la firma global solo va al primer campo firma foreach ($esquema as $campo): @@ -496,7 +497,8 @@ function esc2(mixed $v): string { if (!$cid) continue; $isPro = ($tipo === 'firma_profesional'); - // Marcar siempre que el esquema tiene campo firma paciente + // Marcar presencia de campos firma en el esquema + $_esquemaTieneFirmaAlguna = true; if (!$isPro) { $_esquemaTieneFirmaPaciente = true; } @@ -789,8 +791,8 @@ function esc2(mixed $v): string { - - + +
Firma del paciente / responsable