Parcourir la 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 il y a 7 ans
Parent
révision
4d954d5569
1 fichiers modifiés avec 10 ajouts et 3 suppressions
  1. +10
    -3
      frappe/www/login.html

+ 10
- 3
frappe/www/login.html Voir le fichier

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

<input type="text" id="login_email"
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>




Chargement…
Annuler
Enregistrer