diff --git a/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html b/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html index c857270..dd3e7a5 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html +++ b/src/main/resources/templates/modules/callcenterqaqc/domesticwastecomplaints.html @@ -1,122 +1,124 @@ + - - - - + + + + + -
+
- +
1. Personal Details:
- - + +
- +
- +
- -
+ +
+ + - -
@@ -492,41 +581,49 @@ to {
3. Item Details:
- - + + -
-
-
- - - -
-
-
-
-
-
-
- -
+
+
+
+ + + +
+
+
+
+
+
+
+ +
- - -
-
- - -
+ + +
+
+ + +
-

Please wait...

-
- + + + @@ -679,97 +778,110 @@ to { - - + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html b/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html index efec8cc..8b0ab13 100644 --- a/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html +++ b/src/main/resources/templates/modules/callcenterqaqc/pgrcomplaints.html @@ -1,333 +1,410 @@ + - - - - + + + + + -
+
- +
1. Complaining Person's Details:
- - + +
- +
- +
+ class="form-control" id="email" placeholder="Enter your email">
- +
- +
- +
- + +
+ value="transgender">
- +
@@ -508,7 +596,8 @@ to {
-
3. Complaint Type: (Please Select Complaint Type from Below...)
+
3. Complaint Type: (Please Select + Complaint Type from Below...)
- - + + -
-
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
-
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
-
@@ -663,9 +758,9 @@ to {
- +
@@ -674,7 +769,6 @@ to {
@@ -723,9 +817,8 @@ to { Image / Video - : + : @@ -737,7 +830,8 @@ to { onclick="prevStep('prevStep4')">Previous - + @@ -757,17 +851,18 @@ to { - - - + + + @@ -793,91 +888,91 @@ to { + + \ No newline at end of file diff --git a/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html b/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html index e9f121b..ec38f2c 100644 --- a/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html +++ b/src/main/resources/templates/modules/vendors/streetVendorRequestForm.html @@ -150,7 +150,7 @@ max-width: 100%; } - #pac-input { + /* #pac-input { position: absolute; top: 10px; left: 50%; @@ -161,9 +161,9 @@ border: 1px solid #ccc; background-color: white; border-radius: 4px; - } + } */ - #search-container { + /* #search-container { position: absolute; top: 10px; left: 50%; @@ -174,8 +174,7 @@ background-color: white; border-radius: 4px; padding: 0; - /* Removed extra padding to match the input width */ - } + } */ #search-box { width: 100%; @@ -189,7 +188,7 @@ /* Makes sure padding is considered in width */ } - #suggestions { + /* #suggestions { border: 1px solid #ccc; border-radius: 4px; max-height: 200px; @@ -198,9 +197,7 @@ background-color: white; display: none; width: 100%; - /* Matches the width of the container and input */ box-sizing: border-box; - /* Ensures the width includes borders and padding */ } #suggestions ul { @@ -216,7 +213,7 @@ #suggestions ul li:hover { background-color: #f0f0f0; - } + } */ .section-notes { padding: 20px; @@ -241,6 +238,71 @@ font-size: 13px; line-height: 1.4; } + + #pac-input { + + width: 100%; + padding: 10px; + + border: 1px solid #ccc; + border-radius: 4px; + + font-size: 15px; + + box-sizing: border-box; + } + + #suggestions { + + width: 100%; + + display: none; + + background: #fff; + + border: 1px solid #ccc; + + border-top: none; + + max-height: 220px; + + overflow-y: auto; + + box-shadow: 0 2px 8px rgba(0, 0, 0, .25); + } + + #suggestions ul { + + margin: 0; + padding: 0; + list-style: none; + } + + #suggestions li { + + padding: 10px 12px; + + cursor: pointer; + + border-bottom: 1px solid #eee; + } + + #suggestions li:hover { + + background: #f5f5f5; + } + + #search-container { + + position: absolute; + top: 10px; + left: 50%; + transform: translateX(-50%); + + width: 420px; + + z-index: 1000; + } @@ -293,13 +355,15 @@
Business Details | வியாபார விவரங்கள்
- +
+ +
+
+
-
- -
-
+
@@ -360,12 +424,14 @@
- - + +
- +
@@ -375,12 +441,14 @@ + oninput="this.value = this.value.replace(/[^a-zA-Z\s]/g, '')" + required="required">
+ name="vendor_district_tamil" placeholder="தமிழில் பதிவு செய்யவும்" + required="required">
@@ -397,7 +465,8 @@
-
@@ -466,9 +536,11 @@
- + + accept=".jpg,.jpeg,.pdf,application/pdf" name="profileimage" + required="required">
@@ -485,14 +557,18 @@
- + + oninput="this.value = this.value.replace(/[^a-zA-Z\s]/g, '')" + required="required">
- + + name="father_name_tamil" placeholder="தமிழில் பதிவு செய்யவும்" + required="required">
@@ -506,7 +582,8 @@
-
+
ஆண் பெண்
- +
- + Yes No
- +
- +
- +
- +
- +
- +
- +
- - + +
- +
- +
@@ -654,14 +737,16 @@
- +
- +
@@ -784,8 +869,8 @@ - - - - - + + + + + - - - - + + + - + console.log(pair[0] + ':', pair[1]); + } + + $.ajax({ + url: '/gcc/api/streetvendor/updateDetails', + type: 'POST', + data: formData, + enctype: 'multipart/form-data', + processData: false, + contentType: false, + success: function (response) { + $('#pageLoader').hide(); + if (response.status) { + Swal.fire({ + icon: 'success', + title: 'Success', + text: response.description, + allowOutsideClick: false, + allowEscapeKey: false, + allowEnterKey: false, + showConfirmButton: true + }).then((result) => { + if (result.isConfirmed) { + location.reload(); + } + }); + } else { + $('#pageLoader').hide(); + Swal.fire({ + icon: 'error', + title: 'Update Failed', + text: response.description || 'Something went wrong!' + }); + } + $('#submitBtn').prop('disabled', false).text('Update'); + }, + error: function () { + $('#pageLoader').hide(); + Swal.fire({ + icon: 'error', + title: 'Submission Error', + text: 'Something went wrong while updating the form.' + }); + $('#submitBtn').prop('disabled', false).text('Update'); + } + }); + + }); + + + function formatDateForInput(dateStr) { + + if (!dateStr) return ""; + + // Already yyyy-MM-dd + if (/^\d{4}-\d{2}-\d{2}$/.test(dateStr)) { + return dateStr; + } + + // dd-MM-yyyy -> yyyy-MM-dd + if (/^\d{2}-\d{2}-\d{4}$/.test(dateStr)) { + const [day, month, year] = dateStr.split("-"); + return `${year}-${month}-${day}`; + } + + return ""; + } + function formatDateForDisplay(dateStr) { + + if (!dateStr) return "-"; + + // Already dd-MM-yyyy + if (/^\d{2}-\d{2}-\d{4}$/.test(dateStr)) { + return dateStr; + } + + // yyyy-MM-dd -> dd-MM-yyyy + if (/^\d{4}-\d{2}-\d{2}$/.test(dateStr)) { + const [year, month, day] = dateStr.split("-"); + return `${day}-${month}-${year}`; + } + + return dateStr; + } + + + \ No newline at end of file