From 5ccb8520d3e7084d8ebf00b2b05209ba7ed11cf0 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Wed, 16 Oct 2024 13:41:12 +0700 Subject: [PATCH] change logic username field --- system/lan/english.json | 5 ++++- ui/ui/customer/login-noreg.tpl | 19 +++++++++++++++---- ui/ui/customer/login.tpl | 18 ++++++++++++++---- ui/ui/customer/register-otp.tpl | 17 ++++++++++++++--- ui/ui/customer/register-rotp.tpl | 17 ++++++++++++++--- ui/ui/customer/register.tpl | 17 ++++++++++++++--- 6 files changed, 75 insertions(+), 18 deletions(-) diff --git a/system/lan/english.json b/system/lan/english.json index 80c43ea8..2b15d89e 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -799,5 +799,8 @@ "To_download_from_private_paid_repository": "To download from private\/paid repository", "Set_your_Github_Authentication_first": "Set your Github Authentication first", "SMS_Notification": "SMS Notification", - "Customer_Registration_need_to_validate_using_OTP": "Customer Registration need to validate using OTP" + "Customer_Registration_need_to_validate_using_OTP": "Customer Registration need to validate using OTP", + "Registration_Username": "Registration Username", + "Registration": "Registration", + "For_Registration_and_Update_Phone_Number": "For Registration and Update Phone Number" } \ No newline at end of file diff --git a/ui/ui/customer/login-noreg.tpl b/ui/ui/customer/login-noreg.tpl index ebf498b1..a0e6dd2e 100644 --- a/ui/ui/customer/login-noreg.tpl +++ b/ui/ui/customer/login-noreg.tpl @@ -16,17 +16,28 @@
- +
- {if $_c['country_code_phone']!= ''} + {if $_c['registration_username'] == 'phone'} + {elseif $_c['registration_username'] == 'email'} + {else} {/if} - +
diff --git a/ui/ui/customer/login.tpl b/ui/ui/customer/login.tpl index 77fbb1da..acfe2d41 100644 --- a/ui/ui/customer/login.tpl +++ b/ui/ui/customer/login.tpl @@ -20,19 +20,29 @@
- +
- {if $_c['country_code_phone']!= ''} + {if $_c['registration_username'] == 'phone'} + {elseif $_c['registration_username'] == 'email'} + {else} {/if} + placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{elseif $_c['registration_username'] == 'email'}{Lang::T('Email')}{else}{Lang::T('Username')}{/if}">
-
diff --git a/ui/ui/customer/register-otp.tpl b/ui/ui/customer/register-otp.tpl index 657bd4b3..f243e43f 100644 --- a/ui/ui/customer/register-otp.tpl +++ b/ui/ui/customer/register-otp.tpl @@ -17,17 +17,28 @@
- +
- {if $_c['country_code_phone']!= ''} + {if $_c['registration_username'] == 'phone'} + {elseif $_c['registration_username'] == 'email'} + {else} {/if} + placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{elseif $_c['registration_username'] == 'email'}{Lang::T('Email')}{else}{Lang::T('Username')}{/if}">
diff --git a/ui/ui/customer/register-rotp.tpl b/ui/ui/customer/register-rotp.tpl index c50d0197..bf195e73 100644 --- a/ui/ui/customer/register-rotp.tpl +++ b/ui/ui/customer/register-rotp.tpl @@ -19,17 +19,28 @@
1. {Lang::T('Register as Member')}
- +
- {if $_c['country_code_phone']!= ''} + {if $_c['registration_username'] == 'phone'} + {elseif $_c['registration_username'] == 'email'} + {else} {/if} + placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{elseif $_c['registration_username'] == 'email'}{Lang::T('Email')}{else}{Lang::T('Username')}{/if}">
diff --git a/ui/ui/customer/register.tpl b/ui/ui/customer/register.tpl index 35945b71..247db74d 100644 --- a/ui/ui/customer/register.tpl +++ b/ui/ui/customer/register.tpl @@ -17,17 +17,28 @@
- +
- {if $_c['country_code_phone']!= ''} + {if $_c['registration_username'] == 'phone'} + {elseif $_c['registration_username'] == 'email'} + {else} {/if} + placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{elseif $_c['registration_username'] == 'email'}{Lang::T('Email')}{else}{Lang::T('Username')}{/if}">