+class LoginForm(W.TableForm):
+ fields = [
+ W.TextField(name='login_user', label=_(u'Usuario'),
+ validator=V.NotEmpty()),
+ W.PasswordField(name='login_password', label=_(u'Contraseña'),
+ validator=V.NotEmpty())
+ ]
+ javascript = [W.JSSource("MochiKit.DOM.focusOnLoad('form_login_user');")]
+ submit = W.SubmitButton(name='login_submit')
+ submit_text = _(u'Ingresar')
+