specify login form dom id, don't render progress div
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 16 Feb 2010 10:42:04 +0100
changeset 4596 13fd398916c2
parent 4595 bb08a75832e6
child 4597 e872097f2287
specify login form dom id, don't render progress div
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Tue Feb 16 10:33:48 2010 +0100
+++ b/web/views/basetemplates.py	Tue Feb 16 10:42:04 2010 +0100
@@ -464,6 +464,7 @@
 
 class LogForm(forms.FieldsForm):
     __regid__ = 'logform'
+    domid = 'loginForm'
     # XXX have to recall fields name since python is mangling __login/__password
     __login = ff.StringField('__login', widget=fw.TextInput({'class': 'data'}))
     __password = ff.StringField('__password', label=_('password'),
@@ -508,7 +509,7 @@
         else:
             label = cw._('login')
         form.field_by_name('__login').label = label
-        self.w(form.render(table_class=''))
+        self.w(form.render(table_class='', display_progress_div=False))
         cw.html_headers.add_onload('jQuery("#__login:visible").focus()')
 
 def login_form_url(req):