From 009014f01300baf38a2032e84a9d4d06c5481770 Mon Sep 17 00:00:00 2001 From: Kevin Hendrawan Date: Tue, 2 Dec 2025 08:02:37 +0700 Subject: [PATCH] feat(CMS): add faq , modal regulasi, modal panduan --- Views/Main/Cms/Index.cshtml | 238 +++++++++++++++++++++++++++++++++++- 1 file changed, 232 insertions(+), 6 deletions(-) diff --git a/Views/Main/Cms/Index.cshtml b/Views/Main/Cms/Index.cshtml index 857a9da..09c0b71 100644 --- a/Views/Main/Cms/Index.cshtml +++ b/Views/Main/Cms/Index.cshtml @@ -99,6 +99,90 @@ + + + + + + +
@@ -107,7 +191,7 @@
- @@ -258,16 +342,76 @@
+ + + + + + +
- Regulasi + Panduan
-
@@ -290,6 +434,54 @@
+ + +
+ +
+ Frequently Ask Question (FAQ) +
+
+
+
+
+
+
+ + Question + + +
+
+
+
+ + Answer + + +
+
+
+ +
+
+
+ +
+ +
+ +
+ +
+
+
+ @@ -324,7 +516,7 @@ }); // Delete button handler - $('#example').on('click', '.delete-btn', function (e) { + $('#example').on('click', '.delete', function (e) { e.preventDefault(); var id = $(this).data('id'); @@ -378,7 +570,7 @@ }); // Delete button handler - $('#examplePanduan').on('click', '.delete-btn', function (e) { + $('#examplePanduan').on('click', '.delete', function (e) { e.preventDefault(); var id = $(this).data('id'); @@ -414,6 +606,36 @@ } }); }); + + + }); + + $('#tambahFaqBtn').click(function() { + // Create a new FAQ row structure + var newRow = ` +
+
+
+ + Question + + +
+
+
+
+ + Answer + + +
+
+
+
+ `; + + // Append the new row to the container + $('#faqContainer').append(newRow); }); function submitForm(e) { @@ -438,6 +660,10 @@ table.ajax.reload(); }); } + function closeModal(){ + modal_regulasi.close(); + modal_panduan.close(); + } }