web/views/basetemplates.py
branchstable
changeset 5838 68187d50968e
parent 5588 377c9adfe81e
child 5849 9db65b381028
equal deleted inserted replaced
5837:67c722b36f7c 5838:68187d50968e
   479         cw = self._cw
   479         cw = self._cw
   480         form = cw.vreg['forms'].select('logform', cw)
   480         form = cw.vreg['forms'].select('logform', cw)
   481         if cw.vreg.config['allow-email-login']:
   481         if cw.vreg.config['allow-email-login']:
   482             label = cw._('login or email')
   482             label = cw._('login or email')
   483         else:
   483         else:
   484             label = cw._('login')
   484             label = cw.pgettext('CWUser', 'login')
   485         form.field_by_name('__login').label = label
   485         form.field_by_name('__login').label = label
   486         self.w(form.render(table_class='', display_progress_div=False))
   486         self.w(form.render(table_class='', display_progress_div=False))
   487         cw.html_headers.add_onload('jQuery("#__login:visible").focus()')
   487         cw.html_headers.add_onload('jQuery("#__login:visible").focus()')
   488 
   488 
   489 LogFormTemplate = class_renamed('LogFormTemplate', LogFormView)
   489 LogFormTemplate = class_renamed('LogFormTemplate', LogFormView)