From a0c5cec31e88138fa9d1e6a50774044c6730613b Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 15 Apr 2024 15:36:18 +0700 Subject: [PATCH] Fix Notifications Page --- system/lan/english.json | 31 +++++++- ui/ui/app-notifications.tpl | 136 ++++++++++++++++++------------------ 2 files changed, 98 insertions(+), 69 deletions(-) diff --git a/system/lan/english.json b/system/lan/english.json index 27e35406..f050e1f2 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -542,5 +542,34 @@ "ID": "ID", "Internet_Plan": "Internet Plan", "Privacy_Policy": "Privacy Policy", - "Terms_and_Conditions": "Terms and Conditions" + "Terms_and_Conditions": "Terms and Conditions", + "Contact": "Contact", + "will_be_replaced_with_Customer_Name": "will be replaced with Customer Name", + "will_be_replaced_with_Customer_username": "will be replaced with Customer username", + "will_be_replaced_with_Package_name": "will be replaced with Package name", + "will_be_replaced_with_Package_price": "will be replaced with Package price", + "additional_bills_for_customers": "additional bills for customers", + "will_be_replaced_with_Expiration_date": "will be replaced with Expiration date", + "Your_Company_Name_at_Settings": "Your Company Name at Settings", + "Your_Company_Address_at_Settings": "Your Company Address at Settings", + "Your_Company_Phone_at_Settings": "Your Company Phone at Settings", + "Invoice_number": "Invoice number", + "Date_invoice_created": "Date invoice created", + "Payment_gateway_user_paid_from": "Payment gateway user paid from", + "Payment_channel_user_paid_from": "Payment channel user paid from", + "is_Hotspot_or_PPPOE": "is Hotspot or PPPOE", + "Internet_Package": "Internet Package", + "Internet_Package_Prices": "Internet Package Prices", + "Receiver_name": "Receiver name", + "Username_internet": "Username internet", + "User_password": "User password", + "Expired_datetime": "Expired datetime", + "For_Notes_by_admin": "For Notes by admin", + "Transaction_datetime": "Transaction datetime", + "Balance_Before": "Balance Before", + "Balance_After": "Balance After", + "how_much_balance_have_been_send": "how much balance have been send", + "Current_Balance": "Current Balance", + "Sender_name": "Sender name", + "how_much_balance_have_been_received": "how much balance have been received" } \ No newline at end of file diff --git a/ui/ui/app-notifications.tpl b/ui/ui/app-notifications.tpl index 94f97f6f..cb133a39 100644 --- a/ui/ui/app-notifications.tpl +++ b/ui/ui/app-notifications.tpl @@ -17,14 +17,14 @@
+ rows="4">{if $_json['expired']!=''}{Lang::htmlspecialchars($_json['expired'])}{else}Hello [[name]], your internet package [[package]] has been expired.{/if}

- [[name]] - {Lang::T('will be replaced with Customer Name)}.
- [[username]] - {Lang::T('will be replaced with Customer username)}.
- [[package]] - {Lang::T('will be replaced with Package name)}.
- [[price]] - {Lang::T('will be replaced with Package price)}.
- [[bills]] - {Lang::T('additional bills for customers)}. + [[name]] - {Lang::T('will be replaced with Customer Name')}.
+ [[username]] - {Lang::T('will be replaced with Customer username')}.
+ [[package]] - {Lang::T('will be replaced with Package name')}.
+ [[price]] - {Lang::T('will be replaced with Package price')}.
+ [[bills]] - {Lang::T('additional bills for customers')}.

@@ -33,15 +33,15 @@
+ rows="4">{Lang::htmlspecialchars($_json['reminder_7_day'])}

- [[name]] - {Lang::T('will be replaced with Customer Name)}.
- [[username]] - {Lang::T('will be replaced with Customer username)}.
- [[package]] - {Lang::T('will be replaced with Package name)}.
- [[price]] - {Lang::T('will be replaced with Package price)}.
- [[expired_date]] - {Lang::T('will be replaced with Expiration date)}.
- [[bills]] - {Lang::T('additional bills for customers)}. + [[name]] - {Lang::T('will be replaced with Customer Name')}.
+ [[username]] - {Lang::T('will be replaced with Customer username')}.
+ [[package]] - {Lang::T('will be replaced with Package name')}.
+ [[price]] - {Lang::T('will be replaced with Package price')}.
+ [[expired_date]] - {Lang::T('will be replaced with Expiration date')}.
+ [[bills]] - {Lang::T('additional bills for customers')}.

@@ -50,15 +50,15 @@
+ rows="4">{Lang::htmlspecialchars($_json['reminder_3_day'])}

- [[name]] - {Lang::T('will be replaced with Customer Name)}.
- [[username]] - {Lang::T('will be replaced with Customer username)}.
- [[package]] - {Lang::T('will be replaced with Package name)}.
- [[price]] - {Lang::T('will be replaced with Package price)}.
- [[expired_date]] - {Lang::T('will be replaced with Expiration date)}.
- [[bills]] - {Lang::T('additional bills for customers)}. + [[name]] - {Lang::T('will be replaced with Customer Name')}.
+ [[username]] - {Lang::T('will be replaced with Customer username')}.
+ [[package]] - {Lang::T('will be replaced with Package name')}.
+ [[price]] - {Lang::T('will be replaced with Package price')}.
+ [[expired_date]] - {Lang::T('will be replaced with Expiration date')}.
+ [[bills]] - {Lang::T('additional bills for customers')}.

@@ -67,15 +67,15 @@
+ rows="4">{Lang::htmlspecialchars($_json['reminder_1_day'])}

- [[name]] - {Lang::T('will be replaced with Customer Name)}.
- [[username]] - {Lang::T('will be replaced with Customer username)}.
- [[package]] - {Lang::T('will be replaced with Package name)}.
- [[price]] - {Lang::T('will be replaced with Package price)}.
- [[expired_date]] - {Lang::T('will be replaced with Expiration date)}.
- [[bills]] - {Lang::T('additional bills for customers)}. + [[name]] - {Lang::T('will be replaced with Customer Name')}.
+ [[username]] - {Lang::T('will be replaced with Customer username')}.
+ [[package]] - {Lang::T('will be replaced with Package name')}.
+ [[price]] - {Lang::T('will be replaced with Package price')}.
+ [[expired_date]] - {Lang::T('will be replaced with Expiration date')}.
+ [[bills]] - {Lang::T('additional bills for customers')}.

@@ -88,22 +88,22 @@ rows="20">{Lang::htmlspecialchars($_json['invoice_paid'])}

- [[company_name]] {Lang::T('Your Company Name at Settings)}.
- [[address]] {Lang::T('Your Company Address at Settings)}.
- [[phone]] - {Lang::T('Your Company Phone at Settings)}.
- [[invoice]] - {Lang::T('Invoice number)}.
- [[date]] - {Lang::T('Date invoice created)}.
- [[payment_gateway]] - {Lang::T('Payment gateway user paid from)}.
- [[payment_channel]] - {Lang::T('Payment channel user paid from)}.
- [[type]] - {Lang::T('is Hotspot or PPPOE)}.
- [[plan_name]] - {Lang::T('Internet Package)}.
- [[plan_price]] - {Lang::T('Internet Package Prices)}.
- [[name]] - {Lang::T('Receiver name)}.
- [[user_name]] - {Lang::T('Username internet)}.
- [[user_password]] - {Lang::T('User password)}.
- [[expired_date]] - {Lang::T('Expired datetime)}.
- [[footer]] - {Lang::T('Invoice Footer)}.
- [[note]] - {Lang::T('For Notes by admin)}.
+ [[company_name]] {Lang::T('Your Company Name at Settings')}.
+ [[address]] {Lang::T('Your Company Address at Settings')}.
+ [[phone]] - {Lang::T('Your Company Phone at Settings')}.
+ [[invoice]] - {Lang::T('Invoice number')}.
+ [[date]] - {Lang::T('Date invoice created')}.
+ [[payment_gateway]] - {Lang::T('Payment gateway user paid from')}.
+ [[payment_channel]] - {Lang::T('Payment channel user paid from')}.
+ [[type]] - {Lang::T('is Hotspot or PPPOE')}.
+ [[plan_name]] - {Lang::T('Internet Package')}.
+ [[plan_price]] - {Lang::T('Internet Package Prices')}.
+ [[name]] - {Lang::T('Receiver name')}.
+ [[user_name]] - {Lang::T('Username internet')}.
+ [[user_password]] - {Lang::T('User password')}.
+ [[expired_date]] - {Lang::T('Expired datetime')}.
+ [[footer]] - {Lang::T('Invoice Footer')}.
+ [[note]] - {Lang::T('For Notes by admin')}.

@@ -116,23 +116,23 @@ rows="20">{Lang::htmlspecialchars($_json['invoice_balance'])}

- [[company_name]] - {Lang::T('Your Company Name at Settings)}.
- [[address]] - {Lang::T('Your Company Address at Settings)}.
- [[phone]] - {Lang::T('Your Company Phone at Settings)}.
- [[invoice]] - {Lang::T('Invoice number)}.
- [[date]] - {Lang::T('Date invoice created)}.
- [[payment_gateway]] - {Lang::T('Payment gateway user paid from)}.
- [[payment_channel]] - {Lang::T('Payment channel user paid from)}.
- [[type]] - {Lang::T('is Hotspot or PPPOE)}.
- [[plan_name]] - {Lang::T('Internet Package)}.
- [[plan_price]] - {Lang::T('Internet Package Prices)}.
- [[name]] - {Lang::T('Receiver name)}.
- [[user_name]] - {Lang::T('Username internet)}.
- [[user_password]] - {Lang::T('User password)}.
- [[trx_date]] - {Lang::T('Transaction datetime)}.
- [[balance_before]] - {Lang::T('Balance Before)}.
- [[balance]] - {Lang::T('Balance After)}.
- [[footer]] - {Lang::T('Invoice Footer)}. + [[company_name]] - {Lang::T('Your Company Name at Settings')}.
+ [[address]] - {Lang::T('Your Company Address at Settings')}.
+ [[phone]] - {Lang::T('Your Company Phone at Settings')}.
+ [[invoice]] - {Lang::T('Invoice number')}.
+ [[date]] - {Lang::T('Date invoice created')}.
+ [[payment_gateway]] - {Lang::T('Payment gateway user paid from')}.
+ [[payment_channel]] - {Lang::T('Payment channel user paid from')}.
+ [[type]] - {Lang::T('is Hotspot or PPPOE')}.
+ [[plan_name]] - {Lang::T('Internet Package')}.
+ [[plan_price]] - {Lang::T('Internet Package Prices')}.
+ [[name]] - {Lang::T('Receiver name')}.
+ [[user_name]] - {Lang::T('Username internet')}.
+ [[user_password]] - {Lang::T('User password')}.
+ [[trx_date]] - {Lang::T('Transaction datetime')}.
+ [[balance_before]] - {Lang::T('Balance Before')}.
+ [[balance]] - {Lang::T('Balance After')}.
+ [[footer]] - {Lang::T('Invoice Footer')}.

@@ -142,12 +142,12 @@
+ rows="4">{if $_json['balance_send']}{Lang::htmlspecialchars($_json['balance_send'])}{else}{Lang::htmlspecialchars($_default['balance_send'])}{/if}

- [[name]] - {Lang::T('Receiver name)}.
- [[balance]] - {Lang::T('how much balance have been send)}.
- [[current_balance]] - {Lang::T('Current Balance)}. + [[name]] - {Lang::T('Receiver name')}.
+ [[balance]] - {Lang::T('how much balance have been send')}.
+ [[current_balance]] - {Lang::T('Current Balance')}.

@@ -156,12 +156,12 @@
+ rows="4">{if $_json['balance_received']}{Lang::htmlspecialchars($_json['balance_received'])}{else}{Lang::htmlspecialchars($_default['balance_received'])}{/if}

- [[name]] - {Lang::T('Sender name)}.
- [[balance]] - {Lang::T('how much balance have been received)}.
- [[current_balance]] - {Lang::T('Current Balance)}. + [[name]] - {Lang::T('Sender name')}.
+ [[balance]] - {Lang::T('how much balance have been received')}.
+ [[current_balance]] - {Lang::T('Current Balance')}.