fix(turnero): usar plantilla correcta según tipo de turno y ajustar sidebar

- create_turno.php: tipo F usa turnero_wa_template_muestra, resto usa turnero_wa_template
- styles.css: has-active ya incluye font-size 0.82rem (verificado)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-03 00:30:06 -05:00
co-authored by Claude Sonnet 4.6
parent 4f686bd9ca
commit ff0fd3284e
+6 -2
View File
@@ -120,11 +120,15 @@ try {
try {
$cfgWA = [];
$stmtCfg = $pdo->prepare(
"SELECT clave, valor FROM lab_config WHERE clave IN ('turnero_wa_template','turnero_wa_lang')"
"SELECT clave, valor FROM lab_config WHERE clave IN ('turnero_wa_template','turnero_wa_template_muestra','turnero_wa_lang')"
);
$stmtCfg->execute();
$cfgWA = $stmtCfg->fetchAll(PDO::FETCH_KEY_PAIR);
$waTemplate = $cfgWA['turnero_wa_template'] ?? 'consentimiento_turno';
// Tipo F = solo muestra pendiente, sin consentimiento → plantilla diferente
$esSoloMuestra = ($prioCodigo === 'F');
$waTemplate = $esSoloMuestra
? ($cfgWA['turnero_wa_template_muestra'] ?? 'turno_muestra_pendiente')
: ($cfgWA['turnero_wa_template'] ?? 'consentimiento_turno');
$waLang = $cfgWA['turnero_wa_lang'] ?? 'es_CO';
} catch (\Throwable $e) {
$waTemplate = 'consentimiento_turno';