From 80c1fdda8b8eaa7f3da2e71f3e8e3392716e0a23 Mon Sep 17 00:00:00 2001
From: Farhaan4 <127176994+Farhaan4@users.noreply.github.com>
Date: Thu, 18 Sep 2025 17:00:50 +0700
Subject: [PATCH] update form ultah
---
.../app/components/forms/UlangTahunForm.vue | 231 +++++++++++++-----
1 file changed, 164 insertions(+), 67 deletions(-)
diff --git a/proyek-frontend/app/components/forms/UlangTahunForm.vue b/proyek-frontend/app/components/forms/UlangTahunForm.vue
index 55d6cfa..5d530d9 100644
--- a/proyek-frontend/app/components/forms/UlangTahunForm.vue
+++ b/proyek-frontend/app/components/forms/UlangTahunForm.vue
@@ -21,92 +21,189 @@
-
+
-
+
+
+
+ Pemesan Undangan
+
+
+
-
-
+
+
-
-
+
+
+
+ Jadwal Acara
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
+
Galeri (max 5 gambar)
-
+
![Preview]()
-
-
-
-
-
+
+
+
+
+
+
-
- ✅ Form berhasil dikirim!
- ❌ Gagal mengirim form. Pastikan semua data yang wajib diisi sudah lengkap.
+ ✅ Form berhasil
+ dikirim!
+ ❌ Gagal mengirim form.
+ Pastikan semua data yang wajib diisi sudah lengkap.
@@ -133,8 +230,8 @@ const form = ref({
nama_panggilan_anak: "",
bapak_anak: "",
ibu_anak: "",
- umur_dirayakan: "",
- anak_ke: "",
+ umur_dirayakan: "",
+ anak_ke: "",
hari_tanggal_acara: "",
waktu_acara: "",
alamat_acara: "",
@@ -172,7 +269,7 @@ const handleFileUpload = (event) => {
form.value.galeri = combinedFiles.slice(0, 5);
// Buat ulang array preview berdasarkan data file yang sudah final
- previewImages.value = [];
+ previewImages.value = [];
form.value.galeri.forEach(file => {
const reader = new FileReader();
reader.onload = (e) => {
@@ -215,7 +312,7 @@ const submitForm = async () => {
success.value = true;
-
+
const adminNumber = "62895602603247";
// Susun pesan WA
@@ -243,7 +340,7 @@ Tanggal Pemesanan: ${form.value.tanggal_pemesanan}
// Redirect ke WhatsApp
const waUrl = `https://wa.me/${adminNumber}?text=${encodeURIComponent(message)}`;
window.location.href = waUrl;
-
+
} catch (err) {
console.error(err);
error.value = true;