equal
deleted
inserted
replaced
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) |