From dae75f03de16329f7db43bb22be6d90d0e632741 Mon Sep 17 00:00:00 2001 From: Dev Team Date: Wed, 28 May 2025 16:07:25 +0630 Subject: [PATCH] update payment selection ui & layout adjustments --- app/views/foodcourt/qrpay/init.html.erb | 18 ++-- app/views/layouts/_header.html.erb | 2 +- app/views/layouts/_read_modal.html.erb | 118 +++++------------------- app/views/layouts/foodcourt.html.erb | 2 +- 4 files changed, 35 insertions(+), 105 deletions(-) diff --git a/app/views/foodcourt/qrpay/init.html.erb b/app/views/foodcourt/qrpay/init.html.erb index d1965337..c384ca47 100644 --- a/app/views/foodcourt/qrpay/init.html.erb +++ b/app/views/foodcourt/qrpay/init.html.erb @@ -203,6 +203,11 @@
MMQR Payment +
+
+
+
+

Waiting for Customer Payment

Please ask customer to scan the QR code

<% if @qr_svg %> @@ -210,15 +215,11 @@ <%= raw @qr_svg %>
<% end %> -
-
-
-
+
+
-
- -
+ " id="server_mode">
@@ -271,6 +272,7 @@ $(document).ready(function() { console.log("Received:", data); if (data.status === "PAY_SUCCESS") { + $('#cancel-btn').hide(); this.handlePaymentSuccess(); } }, @@ -303,7 +305,7 @@ $(document).ready(function() { setTimeout(() => { window.location.href = "/"; - }, 3000); + }, 2000); } }, error: (xhr, status, error) => { diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 0bca1c86..bba10d8a 100755 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -149,7 +149,7 @@ <%# Top Bar - New Design %> <% if !request.path_info.include?('second_display') %> -