login_form = w.TableForm(fields=fields, action=previous_url,
submit_text=_(u'Ingresar'), submit=submit)
+ login_form.javascript.append(
+ w.JSSource("MochiKit.DOM.focusOnLoad('form_login_user');"))
values = dict(forward_url=forward_url)
values.update(request.params)
TextField(name='tiempo_cpu', label=_(u'Tiempo de CPU'),
validator=validators.Number(not_empty=False, strip=True)),
])
+form.javascript.append(JSSource("MochiKit.DOM.focusOnLoad('form_nombre');"))
class CasoDePruebaController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>edit</title>
-<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>new</title>
-<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
#help_text=_(u'Si no está activo no puede ingresar al sistema.'),
validator=validators.Bool(if_empty=1)),
])
+form.javascript.append(JSSource("MochiKit.DOM.focusOnLoad('form_usuario');"))
class DocenteController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>edit</title>
-<script>MochiKit.DOM.focusOnLoad('form_usuario');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>new</title>
-<script>MochiKit.DOM.focusOnLoad('form_usuario');</script>
</head>
<body>
TextField(name='descripcion', label=_(u'Descripción'),
validator=validators.UnicodeString(not_empty=False, max=255, strip=True)),
])
+form.javascript.append(JSSource("MochiKit.DOM.focusOnLoad('form_nombre');"))
class EnunciadoController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>edit</title>
-<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>new</title>
-<script>MochiKit.DOM.focusOnLoad('form_nombre');</script>
</head>
<body>
}
</style>
- <script>MochiKit.DOM.focusOnLoad('form_login_user');</script>
</head>
<body>