]> git.llucax.com Git - z.facultad/75.52/sercom.git/blobdiff - sercom/subcontrollers/docente/templates/new.kid
Usar bien mensajes flash().
[z.facultad/75.52/sercom.git] / sercom / subcontrollers / docente / templates / new.kid
index 232f80d3f57f3cdb59503447e05d80a106cc299a..53a05e2789b418a9a1cbed0d45c1e5fe5ab556b2 100644 (file)
@@ -4,15 +4,18 @@
 <head>
 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
 <title>new</title>
 <head>
 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
 <title>new</title>
+<script>
+    MochiKit.Signal.connect(window, 'onload', function() { $('form_usuario').focus(); });
+</script>
 </head>
 <body>
 
 <h1>Crear Nuevo <span py:replace="name">Objeto</span></h1>
 
 </head>
 <body>
 
 <h1>Crear Nuevo <span py:replace="name">Objeto</span></h1>
 
-<p py:replace="form(action='create', submit_text=_('Crear'))">Formulario</p>
+<p py:replace="form(action=tg.url('/docente/create'), value=values, submit_text=_('Crear'))">Formulario</p>
 
 <br/>
 
 <br/>
-<a href="list">Cancelar</a>
+<a href="${tg.url('/docente/list')}">Cancelar</a>
 
 </body>
 </html>
 
 </body>
 </html>