Corrige aspas do atributo x-data que quebravam o html com json_encode

This commit is contained in:
HalbeBruno
2026-03-12 16:12:18 -03:00
parent af9ce9a8fb
commit 1434523bab

View File

@@ -5,7 +5,7 @@ if ($hasError) {
unset($_SESSION['flash_error']); // Prevent toast from showing unset($_SESSION['flash_error']); // Prevent toast from showing
} }
?> ?>
<div class="max-w-3xl mx-auto bg-white rounded-xl shadow-sm border border-gray-100 p-6" x-data="orderForm(<?= $hasError ? 'true' : 'false' ?>, <?= json_encode($errorMsg) ?>)"> <div class="max-w-3xl mx-auto bg-white rounded-xl shadow-sm border border-gray-100 p-6" x-data='orderForm(<?= $hasError ? 'true' : 'false' ?>, <?= json_encode($errorMsg) ?>)'>
<!-- Modal de Erro --> <!-- Modal de Erro -->
<div x-show="showModal" class="fixed inset-0 z-50 overflow-y-auto" aria-labelledby="modal-title" role="dialog" aria-modal="true" x-cloak> <div x-show="showModal" class="fixed inset-0 z-50 overflow-y-auto" aria-labelledby="modal-title" role="dialog" aria-modal="true" x-cloak>