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(); + } }