Добавил модальное окно перед отправкой письма

This commit is contained in:
2024-10-28 02:54:52 +03:00
parent d82e68d9a5
commit 27d4b7fbeb

View File

@@ -8,11 +8,23 @@
} }
</script> </script>
<dialog id="SendToDirectorModal" class="modal modal-bottom sm:modal-middle">
<div class="modal-box">
<h3 class="text-lg font-bold">Отправка письма</h3>
<p class="py-4">Вы уверены что хотите отправить ваше заявление директору?<br>Отменить отправку невозможно!</p>
<div class="modal-action">
<form method="dialog">
<button class="btn btn-primary">Нет</button>
<a href="/otchislenie/congratulation" class="btn btn-error">Да</a>
</form>
</div>
</div>
</dialog>
<div class="w-full"> <div class="w-full">
<div class="flex flex-col space-y-4 w-96 mx-auto"> <div class="flex flex-col space-y-4 w-96 mx-auto">
<div class="card rounded-badge bg-base-200 p-4"> <div class="card rounded-badge bg-base-200 p-4">
<div class="flex flex-col space-y-4 mt-1"> <div class="flex flex-col space-y-4 mt-1">
<button class="btn h-16 btn-primary rounded-full text-2xl relative"> <button onclick="SendToDirectorModal.showModal()" class="btn h-16 btn-primary rounded-full text-2xl relative">
Отправить директору Отправить директору
</button> </button>
<button id="downloadPDF" onclick="showCongratulation()" class="btn h-16 btn-primary rounded-full text-2xl relative"> <button id="downloadPDF" onclick="showCongratulation()" class="btn h-16 btn-primary rounded-full text-2xl relative">