Browse Source

Change placeholder to 'Email address or Username' in login screen

Change placeholder in login screen based on system setting
    If allowed login using mobile number placeholder => 'Email address or Mobile number'
    If allowed login using username placeholder => 'Email address or Username'
    If allowed login using both username and mobile placeholder => 'Email Address or Mobile number or Username'
version-14
shridhar 7 years ago
parent
commit
4d954d5569
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      frappe/www/login.html

+ 10
- 3
frappe/www/login.html View File

@@ -17,9 +17,16 @@


<input type="text" id="login_email" <input type="text" id="login_email"
class="form-control" placeholder="{{ class="form-control" placeholder="{{
_('Email address or Mobile number')
if frappe.utils.cint(frappe.db.get_value('System Settings', 'System Settings', 'allow_login_using_mobile_number'))
else _('Email address') }}"
_('Email address or Mobile number or Username')
if frappe.utils.cint(frappe.db.get_value('System Settings', 'System Settings', 'allow_login_using_mobile_number')) and frappe.utils.cint(frappe.db.get_value('System Settings', 'System Settings', 'allow_login_using_user_name'))
else (
_('Email address or Username')
if frappe.utils.cint(frappe.db.get_value('System Settings', 'System Settings', 'allow_login_using_user_name'))
else (
_('Email address or Mobile number')
if frappe.utils.cint(frappe.db.get_value('System Settings', 'System Settings', 'allow_login_using_mobile_number'))
else _('Email address'))
) }}"
required autofocus> required autofocus>






Loading…
Cancel
Save